

Now, we need to save the file and reopen it through the terminal, which will run the commands inside the file. Inside the file, we need to paste the command codes from the following snippet: export ANDROID_HOME=$HOME/Library/Android/sdkĮxport PATH=$PATH:$ANDROID_HOME/tools/binĮxport PATH=$PATH:$ANDROID_HOME/platform-tools For that, we need to go to the home directory and create a. This will enable us to run the React Native app in for Android platform in emulators. Then, we need to figure out how to configure the environment variables. Next, we click on Apply and it will automatically download the selected tools. Make sure to select it before starting the installation.Īdditional Android SDKs can be installed through the SDK Manager in Android Studio. Note that React Native requires the Android 10 (Q) SDK in particular. Then, we need to follow the installation wizard. We need to download the Android Studio setup file from the official site and run it. Next, we need Android Studio for SDK and build tools that support Android app development.

Here, we have three main steps to set up Android on macOS: Now, we start the configuration for the Android platform in order to enable us to develop React Native apps for Android. Here, our setup is completed for the development of the React Native app for the iOS platform. Hence, we just need to install CocoadPods by running the following command: sudo gem install cocoapods Ruby is installed in the macOS system by default.

Now, we need to install XCode from App Store and navigate to Preference -> Location, and then assign Command Line Tools as directed in the screenshot below:ĬocoaPods is a dependency manager for Swift and Objective-C Cocoa projects built on Ruby for MacOS. We need to run the following commands in a Terminal after installing Homebrew: brew install node Here, we recommend installing Node and Watchman using Homebrew. We are going to configure the environment for the development of a React Native application for the iOS platform. Here, we have the list of development tools that we need to install before we begin the configuration: In the macOS environment, we can produce the React Native application for both Android and iOS platforms. In this tutorial, we will give you step by step guidance on how to configure the React Native development environment to run the React Native application starting from zero. One must carefully set up and configure the development eco-system in order to carry out a smooth development and debugging process. It can be one of the toughest parts as many configurations and tools may be required depending upon the system platform. To begin with, configuring the React Native app development environment and running the application is not a joke.
