0.1.0 • Published 4 years ago

react-native-scroll-indicator v0.1.0

Weekly downloads
90
License
MIT
Repository
github
Last release
4 years ago

react-native-scroll-indicator

It's a simple react-native component made to help you to create your awesome custom scroll indicators. It's support only ScrollView for now. But in the next version it should support FlatList.

Usage

  1. Install the repository npm i react-native-scroll-indicator or yarn add react-native-scroll-indicator
  1. Add an import to the top of your file
    import ScrollViewIndicator from 'react-native-scroll-indicator';
  2. Use it just as normal ScrollView but with some custom props.

    <ScrollViewIndicator>
        <Content />
    </ScrollViewIndicator>

Component Props

PropsTypeDescriptionDefault
flexibleIndicatorboolSet to false if you want to set your indicator a fixed heighttrue
indicatorHeightnumHeight of indicator. Use with flexibleIndicator200
shouldIndicatorHideboolSet to true if you want to hide Indicator when scroll is idletrue
hideTimeoutnumTime of show/hide indicator animation in ms500
stylestyleStyle of container{}
scrollViewStylestyleStyle of ScrollView component{}
scrollIndicatorContainerStylestyleStyle of scroll indicator container{}
scrollIndicatorStylestyleStyle on scroll indicator{}