简体   繁体   中英

React-native run-android with no network

我一直无法访问互联网,但我想制作一个React Native应用并在Genymotion Android模拟器上运行它。

You'll need internet connection to install the React Native CLI and create your app (this will fetch React Native and its JavaScript dependencies).

You'll also need internet connection the first time you run react-native run-android because this will download third-party Android dependencies.

Once run-android finishes, you should be able to run it again without internet connection (just tried it). Then you should be able to work on your app locally and reload JavaScript, without having an internet connection.

See the Getting Started guide on the React Native website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM