Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-quick-scroll

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-quick-scroll

Customizable and performant React Native scroll bar component for quickly scrolling through large lists (based on FlatList)

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-quick-scroll npm version

Customizable and performant React Native scroll bar component for quickly scrolling through large lists (based on FlatList)

Demo

Demo gif

Installation

react-native-quick-scroll uses react-native-gesture-handler to handle pan gestures. Follow these guides to install react-native-gesture-handler in your project.

Now, install react-native-quick scroll

Install with npm

npm install --save react-native-quick-scroll

Or install with Yarn

yarn add react-native-quick-scroll

Usage

import QuickScrollList from 'react-native-quick-scroll';
<QuickScrollList
	keyExtractor={(item, index) => String(item.id)}
	data={dataArray}
	renderItem={this.renderItem}
	itemHeight={60}
	viewportHeight={ScreenHeight - TabHeight}
/>

Props

Inherits all valid FlatList props, except ref and showsVerticalScrollIndicator. Also accepts the following props:

PropTypeDefault ValueDescriptionRequired
itemHeightnumberHeight of an item in the FlatListYes
viewportHeightnumberHeight of the FlatList area visible on screen at a given timeYes
thumbHeightnumber60Height of the scroll bar thumbNo
touchAreaWidthnumber25Width of the touchable area that extends from the left edge of the thumbNo
flashDurationnumber40The time taken by the animation to move scroll bar on-screen after the scroll has begun (in ms)No
flashOutDurationnumber2000The time after which scroll bar disappears (in ms)No
rightOffsetnumber12The distance of the scroll bar from the right edge of screenNo
thumbStyleobjectStyle object for the scroll bar thumb (Don't pass height here, use the thumbHeight prop instead)No
scrollbarStyleobjectStyle object for the scroll barNo
containerStyleobjectStyle object for the parent containerNo
hiddenPositionnumberScreenWidth + 10The off-screen position where the scroll bar thumb moves to after flashOutDurationNo

Todo (PRs welcome!)

  • Native driver support
  • Reimplement with Gesture Handler
  • Replace Animated with Reanimated
  • Add TypeScript typings
  • Support for horizontal FlatList
  • Support for FlatList ref

Keywords

FAQs

Package last updated on 19 Jan 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