Run instructions for Android:
• Have an Android emulator running (quickest way to get started), or a device connected.
• cd "/Users/wangchujiang/git-project/demo/AwesomeTSProject" && npx react-native run-android
Run instructions for iOS:
• cd "/Users/wangchujiang/git-project/demo/AwesomeTSProject" && npx react-native run-ios
- or -
• Open AwesomeTSProject/ios/AwesomeTSProject.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.
Create a new TypeScript project:
npx react-native init AwesomeTSProject --template react-native-template-typescript