2021年10月1日 星期五

[setting, react native] Start

 Start the React Native App 

井民全, Jing, mqjing@gmail.com


This is the note following the instructions from the official document[1]. In just 5 steps, you can test your first React Native App on your iPhone.

Quick

yarn global add expo-cli

expo init AwesomeProject

cd AwesomeProject

yarn start   # yarn ios


# iPhone

Start [Camera] to scan the 2D code.




Detail

1. Install Expo CLI

yarn global add expo-cli


2. Create new React Native project

expo init AwesomeProject

Run

yarn ios


Test it on your iPhone

Step 1: Install Expo Go

https://expo.dev/client


Step 2: Scan the 2D code on the desktop machine screen




3. Reference

  1. https://reactnative.dev/docs/environment-setup