react-native init 项目,在运行中报错
React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing
React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing

解决方法

  1. 打开Xcode项目,点击Libraries文件夹右键Add Files to "项目名"
    React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing

  2. RCTAnimation.xcodeproj添加到Libraries
    React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing

  3. 然后把libRCTAnimation.a文件拖拽到 Build Phases/Link Binary With Libraries下即可,重新运行项目就没有警告了
    React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing

相关文章:

  • 2022-02-27
  • 2021-10-24
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2021-12-21
  • 2021-08-28
猜你喜欢
  • 2021-11-01
  • 2021-12-28
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2017-12-08
  • 2022-01-23
相关资源
相似解决方案