react-native-bpk-component-carousel-indicator
Backpack React Native carousel indicators component.
Installation
npm install react-native-bpk-component-carousel-indicator --save-dev
Usage
;;;; const styles = StyleSheet; { return <View style=stylescontainer> <BpkCarouselIndicator pageCount="10" selectedIndex="0" /> <BpkCarouselIndicator pageCount="3" selectedIndex="2" /> <BpkCarouselIndicator pageCount="5" selectedIndex="1" /> </View> ; }
Props
Property | PropType | Required | Default Value |
---|---|---|---|
pageCount | number | true | - |
selectedIndex | number | true | - |