ReactNatice Warning encountered 1 time. `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module

ReactNatice Warning encountered 1 time. `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module_第1张图片
Paste_Image.png

其实是因为升级默认RCTAnimation这个原生模块作为依赖。。 你只需要在工程目录执行react-native link react-native 就可以了。

有些同学看的资料可能比较老
npm link react-native
这个命令不能执行

0.29之后 你可以直接使用react-native link react-native 就可以了

当然 你不要忘记重新启动项目,这样才能添加依赖
添加后的截图

Paste_Image.png

你可能感兴趣的:(ReactNatice Warning encountered 1 time. `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module)