1.报错"[!] No podspec found for React in ./node_modules/react-native" 。
解决办法 :使用node_modules/react-native的绝对路径.
2.[!] The name of the given podspec `yoga` doesn't match the expected one `Yoga`
解决办法:将cocoapods 中Yoga 改成yoga
注:我这么做是可以的.微信:mengwx11101
1.报错"[!] No podspec found for React in ./node_modules/react-native" 。
解决办法 :使用node_modules/react-native的绝对路径.
2.[!] The name of the given podspec `yoga` doesn't match the expected one `Yoga`
解决办法:将cocoapods 中Yoga 改成yoga
注:我这么做是可以的.微信:mengwx11101
本文标题:原生项目集成reactNative遇到的坑
本文链接:https://www.haomeiwen.com/subject/mzqbdftx.html
网友评论