The fastest way to create React Native apps
npx create-react-native-app
Once you're up and running with Create React Native App, visit the tutorial on reactnative.dev and the tutorial on expo.dev for more information on building mobile apps with React.
npx create-react-native-app
Create a new native React app.npx crna
Alias fornpx create-react-native-app
.npm run ios
-- (npx expo run:ios
) Build the iOS App (requires a MacOS computer).npm run android
-- (npx expo run:android
) Build the Android App.npm run web
-- (npx expo start --web
) Run the website in your browser.
By default you create a bare workflow React project with support for iOS, Android, and web. The project comes preconfigured with support for Expo Modules, an API writing native modules using Swift and Kotlin, and this also makes it possible to use any library in the Expo SDK.
You can opt to use an example project instead by selecting the "Templates from ..." option. Custom templates can be used with --template <Example Name or GitHub URL>
option.
- Use an example:
npx create-react-native-app -t with-typescript
- Use a custom template:
npx create-react-native-app --template https://github.com/someone/my-react-starter
-- Only works with GitHub repos on the master branch. - All examples can be modified in the expo/examples repo.
Expo Go enables you to work with all of the Components and APIs in react-native
, as well as the JavaScript APIs that the are bundled with the Expo app.
- Download the "Expo Go" app from the Play Store or App Store.
- Start your project with Expo CLI:
npm start
- Open the project by scanning the QR code in the terminal.
If you're having issues with Create React Native App, please make sure:
- The issue is not covered in the Expo Docs
- There is not already an open issue for your particular problem
If you've checked the documentation and currently open issues, please either open a new GitHub issue or ask a question on Expo Community Discord.