原生项目集成reactNative遇到的坑

2018-05-17  本文已影响76人  孟维学

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

上一篇 下一篇

猜你喜欢

热点阅读