
How to Set Up Your First React Native Mobile App Development Environment
April 23, 2025
If you're stepping into the world of mobile app development and want to build cross-platform apps with a single codebase, React Native is an excellent choice. Built by Facebook, React Native lets you use JavaScript and React to create natively-rendered mobile apps for iOS and Android.
Here’s a step-by-step guide to help you set up your React Native Mobile App Development environment for the first time.
1. Prerequisites
Before setting up your React Native environment, ensure you have the following installed:
Node.js (Recommended version: LTS)
Watchman (macOS only)
Java Development Kit (JDK)
Python (v3+)
Android Studio (for Android development)
Xcode (for iOS development, macOS only)
💡 Tip: Make sure your system path is configured properly after installing these tools.
2. Install Node.js and npm
Visit https://nodejs.org and download the latest LTS version. This will install both node and npm (Node Package Manager).
Verify installation:
3. Install React Native CLI (Optional)
React Native has two ways to set up a project: the React Native CLI and Expo CLI. If you want full native capabilities, use the React Native CLI.
4. Set Up Android Development Environment
To build Android apps, you'll need:
Android Studio
Android SDK
AVD (Android Virtual Device)
Steps:
Download Android Studio from https://developer.android.com/studio.
Open Android Studio > Configure > SDK Manager:
Install Android SDK, Android SDK Platform, and Android Virtual Device (AVD).
Set the environment variables:
Add these lines to your .bashrc, .zshrc, or .bash_profile.
5. Set Up iOS Development Environment (macOS Only)
If you're developing for iOS:
Install Xcode from the Mac App Store.
Open Xcode and install required components.
Use the iOS simulator to test your app.
6. Create a New React Native Project
Now you're ready to create your first project!
7. Run the App
Android:
Make sure an emulator is running or a device is connected.
iOS (macOS only):
8. Use Expo (Alternative Setup for Beginners)
If you prefer a simpler setup and don’t need native modules immediately, try Expo CLI:
Scan the QR code using the Expo Go app on your phone to run the app.
Conclusion
Setting up React Native might feel like a lot at first, but once you're through it, you're ready to start building powerful mobile apps with JavaScript. Whether you go with the React Native CLI or Expo, the ecosystem is rich and developer-friendly.
Take your time with the setup, and don't hesitate to revisit official docs if something doesn't work as expected