美文网首页
第三节:Xcode集成RN问题解决

第三节:Xcode集成RN问题解决

作者: 一半浮沉 | 来源:发表于2018-09-19 15:33 被阅读0次

1, RCTAnimation/RCTValueAnimatedNode.h' file not found;

RN官方bug,这个组件的public header没暴露,需要在package.json中添加:
"postinstall": "sed -i '' 's/#import <RCTAnimation\\/RCTValueAnimatedNode.h>/#import \"RCTValueAnimatedNode.h\"/' ./node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedNodesManager.h",

2,cannot find variable: component;

RN模块引入方式是否正确;

3,native module cannot be null;

RN , podfile依赖文件不全

4,不能发现yoga

spec.public_header_files = 'yoga/Yoga.h', 'yoga/YGEnums.h', 'yoga/YGMacros.h'

5,error : cannot build react

在schemes, build 中加入react 并提至最前

相关文章

网友评论

      本文标题:第三节:Xcode集成RN问题解决

      本文链接:https://www.haomeiwen.com/subject/pxlbkttx.html