Last active
April 5, 2023 14:32
-
-
Save DevGW/a4c6cda74ee62caac670f406874a0c9b to your computer and use it in GitHub Desktop.
React :: Create new react app / project #reactnative
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-react-native-app AppName --use-npm | |
cd AppName | |
### macOS | |
npx react-native-macos-init | |
open macos/*.xcworkspace in xcode |OR| npx react-native run-macos | |
### default modules / components to build from | |
npm i react-native-screens react-native-safe-area-context | |
npm i @react-navigation/native-stack | |
npm i react-native-paper | |
npx pod-install ios | |
### TAB based nav | |
npm install @react-navigation/bottom-tabs | |
Run instructions for Android: | |
• Have an Android emulator running (quickest way to get started), or a device connected. | |
• cd "/Volumes/MBAEXT/Development/react/learning" && npx react-native run-android | |
Run instructions for iOS: | |
• cd "/Volumes/MBAEXT/Development/react/learning" && npx react-native run-ios | |
- or - | |
• Open learning/ios/learning.xcworkspace in Xcode or run "xed -b ios" | |
• Hit the Run button | |
Run instructions for macOS: | |
• See https://aka.ms/ReactNativeGuideMacOS for the latest up-to-date instructions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment