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 [email protected] to fix the issue).

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

watchman watch-del-all

npm run start -- --reset-cache

你可能感兴趣的:(React Native- 模拟器正常真机出现跨域问题)