Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
react-native-quick-scroll
Advanced tools
Readme
Customizable and performant React Native scroll bar component for quickly scrolling through large lists (based on FlatList)
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
import QuickScrollList from 'react-native-quick-scroll';
<QuickScrollList
keyExtractor={(item, index) => String(item.id)}
data={dataArray}
renderItem={this.renderItem}
itemHeight={60}
viewportHeight={ScreenHeight - TabHeight}
/>
Inherits all valid FlatList props, except ref
and showsVerticalScrollIndicator
. Also accepts the following props:
Prop | Type | Default Value | Description | Required |
---|---|---|---|---|
itemHeight | number | Height of an item in the FlatList | Yes | |
viewportHeight | number | Height of the FlatList area visible on screen at a given time | Yes | |
thumbHeight | number | 60 | Height of the scroll bar thumb | No |
touchAreaWidth | number | 25 | Width of the touchable area that extends from the left edge of the thumb | No |
flashDuration | number | 40 | The time taken by the animation to move scroll bar on-screen after the scroll has begun (in ms) | No |
flashOutDuration | number | 2000 | The time after which scroll bar disappears (in ms) | No |
rightOffset | number | 10 | The distance of the scroll bar from the right edge of screen | No |
thumbStyle | object | Style object for the scroll bar thumb (Don't pass height here, use the thumbHeight prop instead) | No | |
scrollbarStyle | object | Style object for the scroll bar | No | |
containerStyle | object | Style object for the parent container | No | |
hiddenPosition | number | ScreenWidth + 10 | The off-screen position where the scroll bar thumb moves to after flashOutDuration | No |
FAQs
Customizable and performant React Native scroll bar component for quickly scrolling through large lists (based on FlatList)
The npm package react-native-quick-scroll receives a total of 8 weekly downloads. As such, react-native-quick-scroll popularity was classified as not popular.
We found that react-native-quick-scroll demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.