This is the React Native mobile app for the ONE local platform.
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
npm install
Follow the instructions to configure React Native Mapbox as described at https://rnmapbox.github.io/docs/install, both for iOS and Android. You will need a secret access token that will go in your home directory.
For development, run:
npm start
If you want to connect to the staging (beta) server, instead run npm run start:staging
.
These commands run the entire iOS build and upload it to TestFlight. No other commands are needed in order to get a build to the testers.
There are two test servers: dev.onelocal.one and beta.onelocal.one and one production server. You can choose which you want to connect to.
Please note: running a build on Android or iOS makes updates to certain files. I typically don't push the updates into github because I don't really see the point, but YMMV.
npm run testflight
or
npm run testflight:dev
You can also generate builds which connect to the other servers with npm run testflight:beta
,
npm run testflight:prod
.
Because we changed to use a new App ID for Android, the one-button install doesn't work right now for Android.
android/app/build.gradle
...
versionCode 37
...
}
playstore
instead of testflight
.android/app/build/outputs/bundle/release/app-release.abb
.