Creating Your First React Native App

React Native 7 min min read Updated: Jul 25, 2026 Beginner
Creating Your First React Native App
Beginner Topic 17 of 20

Creating Your First React Native App

Now that your development environment is ready, it is time to create your first React Native application. This tutorial walks through generating a new project and running it on an emulator or device.

Step 1: Create a New Project

Use the React Native CLI to generate a new project with a default template.

bash npx react-native init MyFirstApp cd MyFirstApp

Step 2: Understanding the Entry File

Every React Native project includes an App.js file, which serves as the root component rendered when the application starts.

javascript import React from 'react'; import { SafeAreaView, Text } from 'react-native'; function App() { return ( Welcome to My First React Native App! ); } export default App;

Step 3: Running on Android

Start an Android emulator or connect a physical device, then run the following command to build and launch your app.

bash npx react-native run-android

Step 4: Running on iOS (macOS only)

On macOS, you can run the app on the iOS simulator using the following command.

bash npx react-native run-ios

Step 5: Making Your First Edit

Modify the text inside App.js and save the file. Thanks to Fast Refresh, your changes will appear almost instantly on the running app without a full rebuild.

Step 6: Understanding the Build Output

The Metro bundler compiles your JavaScript code and serves it to the native app shell, which then renders it as native UI components on the device or emulator.

Common Beginner Mistakes

  • Forgetting to start an emulator before running the build command
  • Not saving files before expecting Fast Refresh to apply changes
  • Ignoring terminal error messages that point to missing dependencies

Conclusion

Congratulations on creating and running your first React Native application. This foundational step prepares you to explore components, styling, navigation, and more advanced React Native concepts in upcoming tutorials.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators