react-native-lottie-rating
The animation is also available here.
Installation
yarn add lottie-react-native react-native-lottie-rating
lottie-react-native
may require native linking, see package repository for more details.
Definition
type rating = disabled?: boolean // default = false max?: number // default = 5 onRate: Function // default = rating => null size?: number // default = 36 src?: any // default = require('./animation.json') value?: number // default = 0;
Example
;; ; const Example = <View style= alignItems: 'center' flex: 1 justifyContent: 'center' > <Rating onRate= console /> </View>; ;