How do you create a new React Native project?

← React Native answers

The quickest way is Expo: npx create-expo-app@latest MyApp. For a project with full control of the native code, use npx @react-native-community/cli init MyApp.

# Expo (recommended for most new apps)
npx create-expo-app@latest MyApp
cd MyApp
npx expo start            # press i for iOS simulator, a for Android emulator
 
# React Native community CLI (bare project with ios/ and android/ folders)
npx @react-native-community/cli init MyApp
cd MyApp
npm run ios               # or: npm run android
  • Prerequisites for the bare CLI: Node.js, Watchman (macOS), a JDK, Android Studio with an emulator or device, and Xcode with CocoaPods for iOS.
  • Expo gives you a managed workflow with an installable development app, over-the-air updates and many ready-made modules. You can still add native code with development builds.
  • The older react-native init command is deprecated, so follow the commands in the current getting-started guide.
  • If the Metro bundler shows stale code, restart it with a cleared cache.
Add Bugsee early in a new React Native project and every test build produces reports with video, logs and network traces. Learn more

Related questions

Start debugging smarter today

Try Bugsee for free — no commitments, no hidden fees.

Free sign upLive demoNo credit card required