Animated: `useNativeDriver` was not specified.
See original GitHub issueHello,
I get this when trying to use the library, what can I do?
Animated: `useNativeDriver` was not specified. This is a required option and must be explicitly set to `true` or `false` at node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js:284:4 in shouldUseNativeDriver at node_modules/react-native/Libraries/Animated/src/animations/SpringAnimation.js:106:49 in constructor at node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:154:26 in start at node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:160:13 in start at node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:374:10 in animations.forEach$argument_0 at [native code]:null in forEach at node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:356:6 in result.start at http://192.168.0.139:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&minify=false:285147:22 in onPanResponderRelease at node_modules/react-native/Libraries/Interaction/PanResponder.js:572:12 in clearInteractionHandle at node_modules/react-native/Libraries/Interaction/PanResponder.js:490:30 in panHandlers.onResponderRelease at [native code]:null in forEach at [native code]:null in callFunctionReturnFlushedQueue
This is what I did, but didnt work.
<BottomSheet useNativeDriver={false} hasDraggableIcon ref={bottomSheet} height={600} />
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Hey guys, sorry for the delay, I was busy with work these months. I just merged a PR that solves this issue, will be releasing a new version of the package right now! Just update your pkg version and the warning should be gone 😃
How to fix this?