React Native

— 1 minute read

Initialize new project permalink

For React Native 0.60.0 or greater permalink

Using npx:

  • Default template: npx react-native init ProjectName
  • TypeScript template: npx react-native init ProjectName --template typescript
  • Custom template: npx react-native init ProjectName --template ${TEMPLATE_NAME}

For older React Native versions permalink

Using legacy react-native-cli package:

yarn global add react-native-cli
react-native init ProjectName

Run app with specific device in Simulator permalink

Specify a simulator using the --simulator flag.

List all available iOS devices:

xcrun simctl list devices