Frontend app for the Green Garden project created with React Native
- Set up React Native CLI for iOS or Android: https://reactnative.dev/docs/environment-setup
- Make sure you have a recent version of Node (
node -v
should be at least 16). For Android make sure you have Java 11 (java --version
). - Download Firebase credentials for iOS or Android. For iOS this should be put in
ios/GoogleService-Info.plist
and for Android this should be put inandroid/app/google-services.json
. - Run
npm install
. For iOS you also need to runnpx pod-install
. - Start the app with
npx react-native start
.
If there are issues with starting the app try using npx react-native start --reset-cache
or npx react-native clean
.
Always run npm install
(and npx pod-install
on iOS) after fetching the latest commits from git!
On Android:
- Add a key at
android/app/release.keystore
. - Create a file called
signing.properties
inandroid
. - Run
cd android && ./gradlew assembleRelease
. - APK will now be located in
android/app/build/outputs/apk/release/app-release.apk
.
The file signing.properties
should contain the following:
storeFile=release.keystore
storePassword=**********
keyPassword=**********
keyAlias=green-garden-key