React native iOS development, basic configuration notes.

Source: Internet
Author: User

First, obtain hardware information, using React-native-device-info plug-in, configuration instructions:

1. First need to install components: NPM install React-native-device-info--save

2.IOS initialization: Open xcode--> Right click libraries--> Select File to current project, go to node_modules/react-native-device-info--> Add. xcodeproj file

2.1. Click on your project name in Xcode-->build phases-->link Binary with libraries--> click on the ' + ' button to add librndeviceinfo.a file

2.2. Add environment variable: $ (srcroot)/. /react-native/react and $ (srcroot)/. /.. /react and modify Recursive

Second, lock screen rotation

Third, the following configuration is required for fetch errors, refer to http://blog.csdn.net/liyijun4114/article/details/51792179

React native iOS development, basic configuration notes.

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.