React Native- 模拟器正常真机出现跨域问题

https://github.com/facebook/react-native/issues/17618,

自测解决办法:

原因是react-native版本  0.52.1的原因,将版本降为0.51.0

Simply downgrading to React-Native 0.51.0 (by just runningnpm i -S react-native@0.51.0seems to fix the issue).

Remember that, after downgrading, you should also reset the cache:

watchman watch-del-all

npm run start -- --reset-cache

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容