react-native-rotate-view
v1.1.1
Published
React Native Animated Rotating View
Downloads
6
Readme
react-native-rotate-view
Rotate Anything you want.
Installation
npm i react-native-rotate-view
RotateView:
| Prop | Type | Default | Description | | ------------- |:-------------:|:------------: | ----------- | | rotate | bool | false | Change this variable to trigger rotation | degree | string (number + 'deg') | '90deg' | Degree that the Animated.View will rotate to. (set negative to rotate backwards) | duration | number | 100 | Time to run the animation | initialDegree | string (number + 'deg') | '0deg' | Initial degree of the animation | style | style | null | Style of the Animated.View | children | Component | null | React Component to render inside the Animated.View | onAnimationEnd | func | null | Callback when animation ends