React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing

问题描述

react-native init 项目,在运行中报错

解决方法

  1. 打开Xcode项目,点击Libraries文件夹右键Add Files to "项目名"

  2. RCTAnimation.xcodeproj添加到Libraries

  3. 然后把libRCTAnimation.a文件拖拽到 Build Phases/Link Binary With Libraries下即可,重新运行项目就没有警告了

原文地址:https://www.cnblogs.com/qiqi715/p/10150349.html