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

Animated Warning is rendering!

Open DeviprasadMG opened this issue 4 years ago • 6 comments

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

That warning irritates a lot!!!

Simulator Screen Shot - iPhone 11 - 2020-04-28 at 12 50 38

DeviprasadMG avatar Apr 28 '20 12:04 DeviprasadMG

please provide us a way to solve this warning

ansalmishra10 avatar May 04 '20 11:05 ansalmishra10

please provide us a way to solve this warning

Explicitly set 'NativeDriver' to true on animated components

stephanoparaskeva avatar May 06 '20 02:05 stephanoparaskeva

How you'll explicitly set 'NativeDrive' in library?

DeviprasadMG avatar May 06 '20 04:05 DeviprasadMG

I think it's a bug :/

changoug avatar Sep 04 '20 18:09 changoug

The owner need to update his source File

Chhantea avatar Oct 05 '20 10: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