Inorder to do this step, please make sure all compatibility requirements were installed
After install all development OS at Compatibility Requirements now you have to install some tools, dependencies to run the Kindie mobile app.
Follow Setting up the development environment and install sample app to make sure you:
React Native CLI Quickstart (We do not use Expo)
Created a new application
Built "AwesomeProject" React Native application
npm install -g react-native-cli
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:
4.1 If you need to build for Android device:
4.2 If you need to build for iOS device:
cd iospod installcd ..react-native run-ios
app-kindie-master> react-native run-androidreact-native : File C:\Users\jaspr\AppData\Roaming\npm\react-native.ps1 cannot be loaded. The fileC:\Users\jaspr\AppData\Roaming\npm\react-native.ps1 is not digitally signed. You cannot run this script on the current system. For moreinformation about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.At line:1 char:1
This is a powershell security policy, to fix it run the following:
PS C:\> Set-ExecutionPolicy RemoteSigned
The stricter the policy, the more secure your system becomes.
You can change RemoteSigned to other options like:
1. Error: Pod command not found?
pod install-bash: pod: command not found
Answer: You have to install cocapods
sudo gem install cocoapods
react-native run-iosbash: react-native: command not found
Answer: because you did not install react native commandline, please run to install
npm i -g react-native-cli
3. Unable to load script. Make you're either running a Metro server...
Answer: You need starting dev server, from Visual Studio Code terminal, run:
4. Could not install npm?
Answer: Because the npm is too old. You have to remove npm and install again ( refer: https://reactnative.dev/docs/environment-setup)
*** We recommend installing Node and Python2 via Chocolatey, a popular package manager for Windows.
5. Build failed?
Answer: Clean android and build again
cd android.\gradlew cleancd ..react-native run-android