Socket
Socket
Sign inDemoInstall

react-native-quick-scroll

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-quick-scroll

React Native FlatList component which allows you to scroll through large lists using the scrollbar thumb


Version published
Maintainers
1
Created

Readme

Source

react-native-quick-scroll npm version

React Native FlatList component which allows you to scroll through large lists using the scrollbar thumb

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={media}
	renderItem={this.renderSongs}
	onRefresh={this.refreshList}
	initialScrollIndex={canScan ? currentTrack.index : undefined}
	showsVerticalScrollIndicator={false}
	itemHeight={60}
	viewportHeight={ScreenHeight - TabHeight}
/>

Props

Inherits the following properties as well as all FlatList props, except ref and showsVerticalScrollIndicator

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

FAQs

Last updated on 16 Nov 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc