react-native-ratings icon indicating copy to clipboard operation
react-native-ratings copied to clipboard

useNativeDriver was not specifiec

Open AftabUfaq opened this issue 4 years ago • 6 comments

` <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

AftabUfaq avatar Jun 24 '20 11:06 AftabUfaq

Same problem, after updating to Expo 38

astreiten avatar Jun 30 '20 22:06 astreiten

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 avatar Jul 06 '20 10:07 nawfalhaddi

There is an open pr for this #108

Maddemacher avatar Jul 06 '20 11:07 Maddemacher

same problem

kevinrichard31 avatar Jul 08 '20 21:07 kevinrichard31

Any Solution for this warning please.

ArjunKarki avatar Aug 09 '20 07:08 ArjunKarki

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

mainak-shil avatar Aug 21 '20 20:08 mainak-shil