ReactNative No component found for view with name “ARTSurfaceView”

ReactNative 添加的第三方库

npm install --save react-native-image-progress
npm install --save react-native-progress

编译出现下图错误

Using:
“react-native”: “^0.24.1”,
“react-native-circular-progress”: “0.0.6”,

49ac3b98-1f75-11e6-92f4-fe9718c88ddb

解决办法:

从项目的根路径: node_modules/react-native/Libraries/ART/

fig16-react-native-preview-opt

ART.xcodeproj工程文件添加到Libraries中

fig17-react-native-preview-opt

打开工程tager 选择Build Phases

fig18-react-native-preview-opt (1)

fig19-react-native-preview-opt

重新运行工程问题已解决

 

《ReactNative No component found for view with name “ARTSurfaceView”》上有3条评论

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注