RN错误集合

1.错误

null is not an object(evaluating 'internallnstance.getHostNode').

原因:

render函数里面使用了//进行注释代码

2.错误

1.PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images ……

2. Command /bin/sh failed with exit code 1

解决方案

1. XCode选中项目 -> TARGETS->Build Phases-> “Bundle React Native code and images”

2.勾选 “Run script only when installing” 

3.Clean 项目,重新运行即可。

你可能感兴趣的:(RN错误集合)