RN 0.62 requires specify useNativeDriver
Instead get warning message:
WARN Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false
Allow passing in a prop (useNativeDriver) which determines whether animations are animated with useNativeDriver. Defaults to false.
加一个 useNativeDriver 的 prop,让用户选择是否使用原生动画驱动。默认 false
Always provide useNativeDriver when starting an animation using Animated.timing to avoid RN 0.62 warnings
每次启用动画的时候,提供 useNativeDriver,避免 React Native 的警告
Related to https://github.com/ascoders/react-native-image-viewer/pull/389 and https://github.com/ascoders/react-native-image-viewer/pull/394
useNativeDriver
) which determines whether animations are animated withuseNativeDriver
. Defaults tofalse
. 加一个useNativeDriver
的 prop,让用户选择是否使用原生动画驱动。默认false
useNativeDriver
when starting an animation usingAnimated.timing
to avoid RN 0.62 warnings 每次启用动画的时候,提供useNativeDriver
,避免 React Native 的警告