<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Frahaan Hussain</title>
    <description>The latest articles on DEV Community by Frahaan Hussain (@sonarsystems).</description>
    <link>https://dev.to/sonarsystems</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1523544%2Fef85cb59-c156-4efb-a8df-c6369a305e28.png</url>
      <title>DEV Community: Frahaan Hussain</title>
      <link>https://dev.to/sonarsystems</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sonarsystems"/>
    <language>en</language>
    <item>
      <title>How To Setup React Native For Android Using VSCode | Mac Apple Chip &amp; Intel Chip</title>
      <dc:creator>Frahaan Hussain</dc:creator>
      <pubDate>Fri, 24 May 2024 08:58:49 +0000</pubDate>
      <link>https://dev.to/sonarsystems/how-to-setup-react-native-for-android-using-vscode-mac-apple-chip-intel-chip-1j5f</link>
      <guid>https://dev.to/sonarsystems/how-to-setup-react-native-for-android-using-vscode-mac-apple-chip-intel-chip-1j5f</guid>
      <description>&lt;p&gt;Hey Devs! 👋&lt;/p&gt;

&lt;p&gt;Video Link: &lt;a href="https://youtu.be/f9JXDmT6hvo"&gt;https://youtu.be/f9JXDmT6hvo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Are you excited to dive into the world of mobile app development with React Native? Whether you're using a Mac with an Apple chip or an Intel chip, this guide will walk you through the process of setting up your development environment using VSCode. Let's get your React Native project up and running on Android!&lt;/p&gt;

&lt;p&gt;Table of Contents&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prerequisites&lt;/li&gt;
&lt;li&gt;Installing Homebrew&lt;/li&gt;
&lt;li&gt;Setting Up Node.js and Watchman&lt;/li&gt;
&lt;li&gt;Installing Android Studio&lt;/li&gt;
&lt;li&gt;Setting Up VSCode&lt;/li&gt;
&lt;li&gt;Creating a New React Native Project&lt;/li&gt;
&lt;li&gt;Running Your App on Android Emulator&lt;/li&gt;
&lt;li&gt;Troubleshooting Common Issues&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;Prerequisites
Before we begin, ensure you have the following installed on your Mac:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;macOS Catalina or newer&lt;br&gt;
At least 8GB of RAM&lt;br&gt;
A stable internet connection&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Installing Homebrew
Homebrew is a package manager for macOS. Open your Terminal and paste the following command to install Homebrew:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
/bin/bash -c "$(curl -fsSL &lt;a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&gt;https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&lt;/a&gt;"&lt;br&gt;
After installation, run:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
brew --version&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Setting Up Node.js and Watchman
Install Node.js and Watchman using Homebrew:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
brew install node&lt;br&gt;
brew install watchman&lt;br&gt;
Verify the installations:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
node -v&lt;br&gt;
watchman -v&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Installing Android Studio
Download and install Android Studio. During the installation, ensure the boxes for "Android SDK," "Android SDK Platform," and "Android Virtual Device" are checked.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once installed, open Android Studio and go to Preferences &amp;gt; Appearance &amp;amp; Behavior &amp;gt; System Settings &amp;gt; Android SDK. Install the latest SDK version and build tools.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Setting Up VSCode
Download and install Visual Studio Code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To enhance your development experience, install the following extensions:&lt;/p&gt;

&lt;p&gt;React Native Tools by Microsoft&lt;br&gt;
ESLint by Dirk Baeumer&lt;br&gt;
Prettier - Code formatter by Prettier&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Creating a New React Native Project
Open your Terminal and run the following commands to create a new React Native project:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
npx react-native init MyReactNativeApp&lt;br&gt;
cd MyReactNativeApp&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Running Your App on Android Emulator
Start Android Studio and open the AVD Manager (Android Virtual Device). Create a new virtual device with the desired configuration and start it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Back in your Terminal, run:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
npx react-native run-android&lt;br&gt;
Your new React Native app should now launch on the Android emulator.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Troubleshooting Common Issues
Error: JAVA_HOME is not set
Ensure that the Java Development Kit (JDK) is installed and JAVA_HOME is set correctly. You can install it using Homebrew:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
brew install --cask adoptopenjdk/openjdk/adoptopenjdk8&lt;br&gt;
Add the following to your .zshrc or .bash_profile:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy code&lt;br&gt;
export JAVA_HOME=$(/usr/libexec/java_home)&lt;br&gt;
export PATH=$JAVA_HOME/bin:$PATH&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Conclusion
Congratulations! You've successfully set up your React Native development environment for Android on a Mac, whether you're using an Apple chip or an Intel chip. Now you're ready to start building amazing mobile apps with React Native!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you found this tutorial helpful, don't forget to like, share, and follow for more. Happy coding! 🚀&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>reactnative</category>
      <category>react</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
