React Native

Initialize new project

For React Native 0.60.0 or greater:

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:

Using legacy react-native-cli package:

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

July 19, 2019