{ "@context": "https://schema.org", "@type": "BlogPosting", "mainEntityOfPage": { "@type": "WebPage", "@id": "https://www.f22labs.com/blogs/getting-started-with-react-native-for-mac/" }, "headline": "Getting started with React Native for Mac", "image": [ "https://www.f22labs.com/_next/image/?url=https%3A%2F%2Fghost.f22labs.cloud%2Fcontent%2Fimages%2F2023%2F09%2Freactnativeformac.webp&w=1920&q=75" ], "datePublished": "2017-10-29", "dateModified": "2024-01-08", "author": { "@type": "Person", "name": "Murtuza Kutub" }, "publisher": { "@type": "Organization", "name": "F22 Labs", "logo": { "@type": "ImageObject", "url": "https://www.f22labs.com/_next/static/media/logo.cab716e3.svg" } }, "description": "Kickstart React Native on Mac with our guide. Essential tools and environment setup insights for seamless iOS and Android app development.", "keywords": "React Native for Mac", "url": "https://www.f22labs.com/blogs/getting-started-with-react-native-for-mac/", "wordCount": "361", "speakable": "https://www.f22labs.com/blogs/getting-started-with-react-native-for-mac/" }

Getting started with React Native for Mac

React Native for Mac

As we all know that Facebook is the creator of react native, which lets you build apps using Javascript for both iOS and Android.

Tools and development environment?

1. Xcode

Do you wanna build apps for iOS as well? Then please go ahead with the Xcode installation from the app store. Hey! Again I support only for Mac. Sadly no support for Windows, Linux and other platforms.

2. Brew

Brewing coffee even takes some time but installing or updating apps are easy with Brew. Yeah! It provides an easy option to install softwares, packages, SDK’s and libraries using simple commands on iTerm.

For example:

brew install mysql — Installs mysql into your mac.

brew update mysql — Updates mysql to latest version.

brew cask install google-chrome — Installs Google chrome.

3. Node/NPM

Oooh! Here comes the main warrior who actually helps to make Javascript work outside the browser environment and NPM manages the dependencies.

Let’s take this ahead and see further to install Node on your machine.

brew install node — This installs node and other related packages to your Mac. (Really Brew made it simple!).

It’s time to verify your installation of the node using node -v command from a terminal. It should say v8.8.1 or any versions which is installed.

4. Watchman

Watchman is a tool by Facebook for watching changes in the filesystem. It keeps an eye on the modified changes or updates that are made to particular files.

brew install watchman — This installs watchman to your mac.

5. Editors (Sublime or Atom or Vscode)

Though there are a few IDEs like Deco, editors such as Sublime, Atom, and VSCode provide ample customization options, especially when it comes to auto-suggestions, linting, and error correction. These features are incredibly useful when you Create, Export, and Import Components in React Native, helping you streamline your development process and maintain clean, modular code.

6. The React Native CLI

Node comes with npm, which lets you install the React Native command line interface.

Run the following command in a Terminal:

npm install -g react-native-cli

7. Lint/ESLint


This is one of the cool feature with Atom, which lets you know when you’re helpless or stuck while coding by pointing your syntax errors.