Setting up the development environment
You can skip step Setting up the development environment if you already setup on your computer
Video setup on fresh macOS
iOS: https://www.facebook.com/rnlab.io/videos/780519085693772
Android: https://www.facebook.com/rnlab.io/videos/498816687651963
Video setup on fresh Window
Android: https://www.facebook.com/rnlab.io/videos/2784767944892377
Ex: React Native CLI Quick start -> macOS -> iOS for my computer.
I'm using node v13.12.0
Note: We not support the issues related this step you can check official docs or search on Google to get a lot of guide, and ensure that you can run a simple React native first before run our source code.
Official Docs: https://reactnative.dev/docs/environment-setup
Config API
Unzip file rn_lekima.zip
inside the app folder.
API Endpoint and Customer Secret & Key
Open file api.js
in rn_lekima/config
and change your domain name, the customer key and customer secret get from Woocommerce -> Settings -> Advanced -> REST API
that you did it before here.
Config api endpoint, customer key and customer secret.
Config Google Map API
Open file src/config/constant.js
and update your API Key for iOS app.
- Create new API key and not for Android or iOS
- Enable "Google Places API Web Service"
- Enable "Google Maps Geocoding API" if you want to use GoogleReverseGeocoding for Current Location
Install the library
In folder rn_lekima
you need run this command to install nodejs dependencies:
yarn install
I prefer use Yarn to management dependency https://yarnpkg.com/lang/en/