React Native app started from Firebase Starter App
- Start the react native packager, run
yarn run start
ornpm start
from the root of your project. - Copy
.env.dev.default
and rename to.env.dev
. Replace any necessary configuration values. - [iOS] Build and run the iOS app, run
npm run ios
from the root of your project. The first build will take some time. This will automatically start up a simulator also for you on a successful build if one wasn't already started.- To view logs, run
react-native log-ios
to view output of console statements
- To view logs, run
- [Android] If you haven't already got an android device attached/emulator running then you'll need to get one running (make sure the emulator is with Google Play / APIs). When ready run
npm run android
from the root of your project.- To view logs, run
react-native log-android
to view output of console statements
- To view logs, run
- Ensure
spinnect.jks
is inandroid/app
- Add keystore password to Mac keychain (instructions) using name
spinnect_keystore
- Update versionCode and versionName in
/android/app/build.gradle
inandroid > defaultConfig
- Update js bundle with
npm run android-bundle
- This should update
/android/app/src/main/assets/index.android.bundle
- If images are copied into the
/android/app/src/main/res
directory, delete them
- This should update
npm run apk
- Upload generated APK from
/android/app/build/outputs/apk/release/app-release.apk
to Play Store- To test on emulator first, drag apk file to emulator
- Program type already present: com.facebook.react.ReactInstanceManager$9 on
npm run android
- Attempt
npm run clearcache
- Attempt
npm run resetcache
- Delete
./android/app/build
- Attempt
- Failed to capture snapshot of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check. on
npm run apk
- Delete
/node_modules/.bin
rm -rf node_modules && npm i
- Delete