I am going to go through the steps you need to take to have the right environment to run React Native for OSX system.
There are a number of dependencies that need to be installed to work on React Native:-
- XCode - used to build apps and install them on the device. Search for XCode in the App Store to download.
- Homebrew - dependency management program used to install node. Go to brew.sh, run the link as per the instructions.
- watchman - Used to watch files brew install watchman
- RN CLI - React Native command line interface. Has two purposes to generate react native project, and second run the project in either IOS or android simulator. npm install -g react-native
To start the project, react-native init NameOfProject cd into NameOfProject and run npm init, then npm start. Then open up another command line and run react-native run-ios;