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 并提至最前
网友评论