Revolver View
A view with a rotating component and revolving text.
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:
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