react-native-banner-carousel
react-native-banner-carousel copied to clipboard
3 Warnings: ComponentWillMount ComponentWillReceiveProps, Use NativeDriver



React Native Version 0.62 Change willMount and willReceiveProps, explicitly set NativeDriver to true
willMount and willReceiveProps stills throw Warning. NativeDriver has been fixed 2 months ago
same issue, why not have been update?
Animated: useNativeDriver
was not specified. This is a required option and must be explicitly set to true
or false
Animated:
useNativeDriver
was not specified. This is a required option and must be explicitly set totrue
orfalse
i also get same warning why is it so?
manually download src file and update it manually and import to your project or wait for owner to change or update
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..