1npm install -g react-native-cli
2
3//cd to the file where your react native projects will be
4react-native init albums
5
6// Run instructions for IOS/Android
7cd projects/albums
8
9npx react-native run-ios
10npx react-native run-android
11
1// For iOS
2
3 //Case 1: Run on Simulator
4 npx react-native run-ios
5
6 //Case 2: Choose Scheme
7 npx react-native run-ios --scheme <Scheme Name>
8
9 // Run on a different simulator, e.g. iPhone SE:
10 react-native run-ios --simulator "iPhone SE"
11
12 // Pass a non-standard location of iOS directory:
13 react-native run-ios --project-path "./app/ios"
14
15 // Run on a connected device, e.g. Max's iPhone:
16 react-native run-ios --device "Max's iPhone"
17
18
19//For Android
20
21//Case 1: Run on Simulator
22npx react-native run-android
23
24
25//Case 2: Choose varient
26npx react-native run-android --varient <varient name>
27
28