1. 程式人生 > >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

問題描述

react-native init 專案,在執行中報錯

解決方法:

  1. 開啟Xcode專案,點選Libraries資料夾右鍵Add Files to "專案名"

  2. RCTAnimation.xcodeproj新增到Libraries

  3. 然後把libRCTAnimation.a檔案拖拽到 Build Phases/Link Binary With Libraries下即可,重新執行專案就沒有警告了