@inteach/react-native-scroll-indicator
Version:
react native scroll indicator
54 lines (37 loc) • 1.15 kB
Markdown
React native scroll indicator
[](https://www.npmjs.com/package/@inteach/react-native-scroll-indicator)
- [Usage](
- [Demo](
- [Code](
- [Components](
- [License](
Install
```bash
$ npm install @inteach/react-native-scroll-indicator -save
$ react-native link react-native-linear-gradient
```
<img src="https://raw.githubusercontent.com/InTeach/react-native-scroll-indicator/master/assets/exemple.gif" height="400">
```javascript
import ScrollIndicator from '@inteach/react-native-scroll-indicator'
const Component = () =>
<View style={{ flex: 1 }}>
<ScrollIndicator>
{/* Somme scrollable content */}
</ScrollIndicator>
</View>
```
ScrollIndicator
---
Props:
- minScrollHeight (int) : default 0
- style (object) : default {}
- scrollEnabled (bool) : default true
- showIndicator (bool) : default true
- picto (require) : default false
[](https://opensource.org/licenses/MIT)