React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法

RN版本更新到0.38后,在tabBar切换的时候会有如下提示提示:


React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法_第1张图片
警告截图

解决方法:
1、打开Xcode项目,点击Libraries文件夹右键‘Add Files to ....’


React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法_第2张图片

2、如图把RCTAnimation.xcodeproj添加到Libraries
React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法_第3张图片

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


React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法_第4张图片

你可能感兴趣的:(React Native--Animated:`useNativeDriver`is not supported because the native animated module is missing.解决方法)