react-native-banner-carousel icon indicating copy to clipboard operation
react-native-banner-carousel copied to clipboard

3 Warnings: ComponentWillMount ComponentWillReceiveProps, Use NativeDriver

Open stephanoparaskeva opened this issue 4 years ago • 6 comments

Screenshot 2020-05-06 at 03 38 34 Screenshot 2020-05-06 at 03 40 30 Screenshot 2020-05-06 at 03 40 50

React Native Version 0.62 Change willMount and willReceiveProps, explicitly set NativeDriver to true

stephanoparaskeva avatar May 06 '20 02:05 stephanoparaskeva

willMount and willReceiveProps stills throw Warning. NativeDriver has been fixed 2 months ago

ezequiasaramburu avatar May 27 '20 16:05 ezequiasaramburu

same issue, why not have been update?

brambang avatar Jun 03 '20 15:06 brambang

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

daksh23 avatar Sep 08 '20 04:09 daksh23

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

i also get same warning why is it so?

snehadange avatar Sep 26 '20 08:09 snehadange

manually download src file and update it manually and import to your project or wait for owner to change or update

Chhantea avatar Oct 05 '20 11:10 Chhantea

My solution: Manually copy code from src >> Edit Carousel.tsx (add useNativeDriver:false on line 50) and import your file to your project. Done!! Ps dont forget to restart.

eg: public static defaultProps: CarouselProps = { pageSize: Dimensions.get('window').width, index: 0, loop: true, autoplay: true, autoplayTimeout: 5000, slipFactor: 1, showsPageIndicator: true, pageIndicatorOffset: 16, animation: (animate, toValue) => { return Animated.spring(animate, { toValue: toValue, friction: 10, tension: 50, useNativeDriver:false // <----- here }); } };

For others error just add unsafe_ on those willReceiveProps etc... etc..

Chhantea avatar Oct 12 '20 06:10 Chhantea