NOTE: The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. you MUST pick one to start with, since the setup is a bit different (screenshot)
2/ Unzip file ZiniStore.zip inside the app folder.
3/ Open Visual Studio Code and go to ZiniStore project source code
If TERMINAL tab was not display, you have to open from menu: View > Terminal
From Visual Code Terminal , install the independence packages:
1
npm install
Copied!
Run on Android devices
1
react-native run-android
Copied!
Run on iOS device
1
cd ios
2
pod install
3
cd ..
4
react-native run-ios
Copied!
If everything is set up correctly, you should see your new app running in your Android/iOS emulator shortly.
Basic config
Open src/config/index.js and change hostAPI to your store currently, and replace consumerKey + consumerSecret previous step.
Common errors
1. Error: Pod command not found?
1
pod install
2
-bash: pod: command not found
Copied!
Answer: You have to install cocapods
1
sudo gem install cocoapods
Copied!
2. Error: react-native command not found?
1
react-native run-ios
2
bash: react-native: command not found
Copied!
Answer: because you did not install react native commandline, please run to install
1
npm i -g react-native-cli
Copied!
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: