- Install Node
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
sudo apt-get install -y nodejs
npm install reinstall -g - use npm to install the
create-react-native-app
command line utility:npm install -g create-react-native-app
- Run the following commands to create a new React Native project called "AwesomeProject"
react-native init AwesomeProject cd AwesomeProject react-native run-android-android
React Native is like React, but it uses native components instead of web components as building blocks. So to understand the basic structure of a React Native app, you need to understand some of the basic React concepts, like JSX, components,
state
, and props
.
If you already know React, you still need to learn some
React-Native-specific stuff, like the native components. This tutorial
is aimed at all audiences, whether you have React experience or not.
Source: React Native CLI Quickstart
No comments:
Post a Comment