ReactNative遇到的坑(持续更新中)

issue1:Requiring unknown module "undefined"
原因:导入组件时重复引用。
解决方案:https://github.com/facebook/react-native/issues/18179
【ReactNative遇到的坑(持续更新中)】issue2:ios打包archive报错:[React/RCTBridgeModule.h file not found]
解决方案:
(https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found)
issue3: React Native:真机断点调试+跨域资源加载出错问题解决
issue4:RN升级到0.60,ios编译报错:'double-conversion/double-conversion.h' file not found


解决方案:在错误目标target中,Build Phrase->Target Dependencies 和 Build Phrase ->Linke Binary with labraries中引入的库有效,如果引入的库显示 ReactNative遇到的坑(持续更新中)
文章图片
企业微信20190715042121.png 这样的,请重新添加该库。之后,Build Settings->HEADER_SEARCH_PATHS里添加该库路径,clean后重新编译。

    推荐阅读