Basic Steps for React Native Setup
npm is package manager for Javascript to be used in Core-Native environment. node or nodejs is the source where the execution can start. npm was designed to fit javascript inside in native c++ platforms. Google v8 engines are used to achieve this.
2. Install HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3. Install Watchman using brew
brew install watchman
4. Install react Native cli
sudo npm install -g react-native-cli
There is another tool to work with react native "expo tool". Using native tools as much as possible is the best practice.
5. Install Android-Studio for Android and Xcode for iOS on you desired system
6. Start the project
react-native init <Project Name>
7. Run the packager
go to the project folder from terminal. and type command react-native start. Command will start the react-native process. Do not close the terminal while working on react-native.
8. Run the project on simulators of iOS and Android using the following commands.
react-native run-ios
react-native run-android
9. To stop the react-native server use CTRL+C command.
That's it. These are the basic command setup for getting started with react-native.