RN Environment Build Run demo APP

Source: Internet
Author: User

1. Environment construction

1.1 JDK

1.2Android JDK

1.3Node

NPM Config Set Registry https://registry.npm.taobao.org
NPM Config set Disturl https://npm.taobao.org/dist

1.4 Installing REACT-NATIVE-CLI

NPM Install-g react-native-cli

2. Create the app and allow

2.1 Creating a Project version=0.49

React-native Init Ruihuaproject

2.2 Project Structure

2.3 Because of my gradle version issue, modify the following

Android directory under Build.gradle

Gradle-wrapper.properties Directory Changes

2.4 Running Demo

If the runtime is red, you need to see if the server is OK, shake the phone settings

Set the server address Dev Setting: for example: 192.168.0108:8081

Go to the App homepage

RN Environment Build Run demo APP

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.