- From root, run:
yarn setup - Run
open example-085/.env, add your testing credentials, and save the file - Drag and drop your google-services.json file into
example-085/android/app(Needed for Firebase FCM testing)
From here, you are all set to start working on the package! 🙌
The repository has two example apps:
example-085/— React Native 0.85.3 scaffold with the New Architecture on. This is the canonical example referenced by all repo scripts (yarn example, CI, etc.).example-expo-55/— Expo SDK 55 example for testing the Expo plugin.
While developing, you can run the example app to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app.
To run the React Native example app use:
yarn example androidor
yarn example iosTo debug the Android package:
- Run
yarn example androidfrom root - Open
example-085/androidin Android Studio - Click Debug
To debug the iOS package:
TODO
While it's possible to use npm, the tooling is built around yarn, so you'll have an easier time if you use yarn for development.
in the root directory run:
yarn link
yarn prepacknavigate to the example-085 directory, run:
yarn link @trycourier/courier-react-nativein the example-085 directory run:
yarn setupEnva .env file will be created in the example-085 directory populate the variables with appropriate values
open android studio
- open the android folder in root directory in android studio,
- open example-085/android folder in android studio. wait for gradle build to finish
in example-085/android directory change the tab to project, paste
google-services.json in CourierReactNativeExample/app directory
To start the packager:
connect your android device
check if your device is available under adb devices, run:
adb devicesDue to 2FA requirements, releases must be published manually using the following script:
sh release.sh