Step 1: Download source code, unzip and open project by Visual Studio Code:
Note: You can toogle terminal by hot keys Ctrl + `
Step 2: To install the React Native command-line utility, run the below command in your terminal:
React Native is an open-source mobile application framework created by Facebook.It is used to develop applications for Android, iOS, Web and UWPby enabling developers to use React along with native platform capabilities. You can refer full document about React Native here:
React Native is an open-source mobile application framework created by Facebook.It is used to develop applications for Android, iOS, Web and UWPby enabling developers to use React along with native platform capabilities. You can refer full document about React Native here:
Note that for react-native run-android to work, you should have an open Android emulator or an Android device with USB Debugging enabled connected to your system via a USB cable.
If everything is set up correctly, you should see your new app running in your Android emulator shortly.
Commons errors
This is a powershell security policy, to fix it run the following:
The stricter the policy, the more secure your system becomes.
You can change RemoteSigned to other options like: Restricted, AllSigned, RemoteSigned, Unrestricted
app-kindie-master> react-native run-android
react-native : File C:\Users\jaspr\AppData\Roaming\npm\react-native.ps1 cannot be loaded. The file
C:\Users\jaspr\AppData\Roaming\npm\react-native.ps1 is not digitally signed. You cannot run this script on the current system. For more
information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
PS C:\> Set-ExecutionPolicy RemoteSigned
pod install
-bash: pod: command not found
sudo gem install cocoapods
react-native run-ios
bash: react-native: command not found
npm i -g react-native-cli
react-native start
cd android
.\gradlew clean
cd ..
react-native run-android