Monte9 / react-native-ratings

Tap and Swipe Ratings component for React Native.
https://expo.io/@monte9/react-native-ratings
MIT License
897 stars 196 forks source link

useNativeDriver was not specifiec #106

Open AftabUfaq opened 4 years ago

AftabUfaq commented 4 years ago

` <AirbnbRating count={5} reviews={["Terrible", "Bad", "Good", "Very Good", "Amazing"]} defaultRating={5} size={30} showRating={false}

            />` 

WARN Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false

astreiten commented 4 years ago

Same problem, after updating to Expo 38

nawfalhaddi commented 4 years ago

To fix the warning just add this line: useNativeDriver:true In this file node_modules/react-native-ratings/src/components/Star.js -> line 32

Exemple:

Animated.spring( this.springValue, { toValue: 1, friction: 2, tension: 1, useNativeDriver: true, } ).start();

Maddemacher commented 4 years ago

There is an open pr for this

108

kevinrichard31 commented 4 years ago

same problem

ArjunKarki commented 4 years ago

Any Solution for this warning please.

mainak-shil commented 4 years ago

To fix the warning just add this line: useNativeDriver:true In this file node_modules/react-native-ratings/src/components/Star.js -> line 32

Exemple:

Animated.spring( this.springValue, { toValue: 1, friction: 2, tension: 1, useNativeDriver: true, } ).start();

@nawfalhaddi , thanks, it worked