react-native-banner-carousel
react-native-banner-carousel copied to clipboard
Animated Warning is rendering!
Animated: useNativeDriver
was not specified. This is a required option and must be explicitly set to true
or false
.
That warning irritates a lot!!!
please provide us a way to solve this warning
please provide us a way to solve this warning
Explicitly set 'NativeDriver' to true
on animated components
How you'll explicitly set 'NativeDrive' in library?
I think it's a bug :/
The owner need to update his source File
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..