New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-vega-scroll-list

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-vega-scroll-list

A React Native FlatList with a lightweight animation which fade and shrink the head item of list when scrolling

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

npm license

React Native Vega Scroll List

A React Native FlatList with a lightweight animation which fade and shrink the head item of list when scrolling. Works on iOS & Android.

Inspired by Vega Scroll - an iOS dependency.

Preview

vega-scroll-list-demo4175c3812f341d26.gif

Installation

npm install react-native-vega-scroll-list --save

Usage

Import VegaScrollList component:

import VegaScrollList from 'react-native-vega-scroll-list';

Usage:

This usage is similar with FlatList. VegaScrollList accepts FlatList props.

<VegaScrollList
  distanceBetweenItem={12} // Add distance between item. Need to calculate animated
  data={data}
  keyExtractor={this.keyExtractor}
  renderItem={this.renderItem}
</VegaScrollList>

Configuration

VegaScrollList accepts FlatList props. Only need to add distanceBetweenItem to calculate animation.

proptype/valid valuesdefaultdescription
distanceBetweenItemnumber8distance between item. Needed to calculate the animation

Demo Application

This repository contains a demo React Native application with a customizable example of the VegaScrollList component in use.

To use the demo application:

  1. Clone this repository: https://github.com/iqbalansyor/react-native-vega-scroll-list.git
  2. Navigate to the demo application: cd path/to/this/repository/react-native-vega-scroll-list/Example
  3. Install demo application dependencies: npm install
  4. For ios, run cd ios && pod install && cd ..
  5. Run npm run start || react-native run-android || react-native run-ios

Contact me

Contributing

Feel free to try it out. Please submit a pull request with any features/fixes for the project.

License

This project is licensed under the MIT License - see the MIT Open Source Initiative for details.

Keywords

FAQs

Package last updated on 13 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc