This app is a solution to the challenge given by FotonTech which can be found on the github repository HERE.. . The project is also bootstrapped with react-native-cli. For more on react-native-cli can be found at REACT-NATIVE-CLI
Please following the instructions below in order to get the application up and running. currently the app is running safely on the android platform and we intend to run the iOS once we can do so. First before setup clone the repository by running the command below.
-
Install an Android emulator.
You can install Android studio from Here plus instructions on how to run the studio. In case the emulator does not work out, you can use a physical device- connect your phone over usb cable
- Go to settings and enable developer options. instructions Here
-
Create directory and cd into the directory
$ mkdir your-directory-name && cd your-directory-name
-
Clone the repository into the directory
$ git clone https://github.com/louiCoder/React-Native-Redux-Saga-Challenge.git
-
Install dependencies.
-
For those using npm, run
$ npm install
-
For those using yarn, run
$ yarn install
-
Install react-native-cli globally
$ yarn global add react-native-cli
or$ npm install -g react-native-cli
- Run the application.
Since at the moment we can only run for Android platform run the command below specific to only the Android platform.
$ react-native run-android
-
Make sure you have given permissions to the android/.gradlew file, to do this on linux run
sudo chmod u=rwx android/gradlew
orsudo chmod rwx-rwx-rwx android/.gradlew
for windows users right click the gradlew file in the android folder and give the users permissions to read, write and execute the file. -
Make sure your emulator is running and is being recognised. To check if the device is connected properly and recognised, run the following command in the terminal
adb devices
This will list all devices whether virtual or physically connected to your device. -
Make sure that you have enabled developer priviledges by enabling usb debugging for those debugging on physical devices. The instructions for setting up developer proviledges on android devices can be found Here
Musanje Louis Michael