This project was bootstrapped with React Native CLI Quickstart. Head over to the link, choose your development OS and target OS and install its dependencies.
Install packages:
npm install
Start Metro:
npx react-native start
Run the app in ios simulator (You need to have Xcode installed):
npx react-native run-ios
Run the app in android simulator (You need to have Android Studio installed):
npx react-native run-android
To run the upload component you will have to 1 - Replace your Imagekit endpoint, public key in app/config/imagekit.js (these creds can be found in your Imagekit dashboard 2 - set up a backend server as shown below.
There is a sample server present in the /server
directory.
It takes the private key
from .env file, so create a .env file by renaming the sample.env in /server
and paste your authentication credentials into it.
Install packages:
cd server
npm install
To run this server:
npm start