React Native Create an app

Source: Internet
Author: User
Tags install homebrew install node

React Native combines the benefits of Web apps and Native apps with JavaScript to develop native IOS and Android apps. In JavaScript, use React abstract OS native UI components instead of DOM elements to render.

React native code Framework sample download: https://github.com/facebook/react-native

1. First download install Nodejs: https://nodejs.org/en/

2. Then recommend using Homebrew the way to install Nvm,watchman and flow:

    • Install Homebrew First (refer to official website): RUBY-E "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

    • Brew Install NVM

    • Brew Install Watchman

    • Brew Install Flow

    • Brew Install node

It is recommended that you run Brew update && brew upgrade regularly to keep your applications up to date

3. Install react Native command: sudo npm install-g react-native-cli

4. Create the React native project:

In the terminal, locate the project file that you want to save, and then run the command: react-native init booksearch

5. Open the iOS boot file under Booksearch and run it with Xcode, the following screen will appear :

6. Edit the code in the Index.ios.js, or add additional JS files to the directory to write code.

7. About react native still need to hit the code more familiar, Rome cold day.

React Native Create an 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.