React Native Note

Source: Internet
Author: User



1.

If anyone wants to improve on these instructions and add them to the docs, feel free, I can do it later if nobody else jum PS on It-i just wanted to document it somewhere for now. Open ios/appdelegate.mcomment out jscodelocation = [Nsurl urlwithstring:@ "Http://localhost:8081/index.ios.bundle"]; Uncomment jscodelocation = [[NSBundle Mainbundle] urlforresource:@ "main" withextension:@ "Jsbundle"]; Start up the packager with NPM start and then run Curl Http://localhost:8081/index.ios.bundle-o main.jsbundle-if this F Ails (as it did on my machine) add the--IPV4 flag to the end of it. In XCode, right click on your project directory and click Add Files to "project Name here"-Choose the Main.jsbundle file That's you generated. You can now run the app on a device (either via USB or TestFlight) without needing to has a server running.

 


Cited from https://github.com/facebook/react-native/issues/240#issuecomment-86977126



React Native Note


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.