Revolver View
A revolving picker view.
Inspired by the work of Oleg Frolov — Search icon interaction II.
Installation
$ npm install react-native-revolver-view
# or
$ yarn add react-native-revolver-view
Follow the installation instructions for each of the following libraries:
yarn add react-native-reanimated react-native-gesture-handler @react-native-community/masked-view react-native-svg
npx pod-install ios
Usage
Props
interface RevolverViewProps {
items: string[]
activeIndex: number
onChangeIndex: (newIndex: number) => void
containerStyle?: ViewStyle
itemColor?: string
itemStyle?: TextStyle
rotatingComponent?: React.ReactElement<any>
rippleActiveOpacity?: number
rippleColor?: string
children?: ReactChild
}
License
MIT