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

React Native FlatList component for scrolling through large lists using the scrollbar thumb

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-quick-scroll npm version

React Native FlatList component for scrolling through large lists using the scrollbar thumb

Demo

Demo gif

Installation

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={(asset, index) => String(asset.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
thumbHeightnumber80Height of the scroll bar thumbNo
touchAreaWidthnumber25Width of the touchable area around thumbNo
flashDurationnumber40The time taken by the animation to display scroll bar on screen after the scroll has begun (in ms)No
flashOutDurationnumber1500The time after which scroll bar disappears (in ms)No
rightOffsetnumber15The distance of the scroll bar from the right edge of screenNo
thumbStyleobjectStyle object for the scroll bar thumbNo
scrollbarStyleobjectStyle object for the scroll barNo
containerStyleobjectStyle object for the parent containerNo
hiddenPositionnumberScreenWidth + 15The offscreen position where the scroll bar thumb moves to after flashOutDurationNo

Todo (PRs welcome!)

  • Add native driver support
  • Rewrite with TypeScript
  • Add support for FlatList ref

FAQs

Package last updated on 17 Nov 2019

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