From 5bae892471c32981eb69680b006d85954515f9fd Mon Sep 17 00:00:00 2001 From: raxng Date: Sun, 9 Feb 2025 13:50:58 -0700 Subject: [PATCH 1/2] Improve messaging for Expo development build users The previous messaging was a bit confusing since the problem is not with Expo Go, but rather Expo development builds. Context: Expo development build = a customized version of "Expo Go" where developers add "react-native" libraries (e.g. `react-native-firebase`) and recompile the "react-native" layer of the mobile app using XCode and/or Android Studio. Expo Go contains a pre-compiled "react-native" layer that cannot be changed unless done so by Expo --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 90d63a1a68..bbeb4f9b10 100644 --- a/docs/index.md +++ b/docs/index.md @@ -241,7 +241,7 @@ The following is an example `app.json` to enable the React Native Firebase modul If you are compiling your app locally, run [`npx expo prebuild --clean`](https://docs.expo.dev/workflow/prebuild/) to generate the native project directories. Then, follow the local app compilation steps described in [Local app development](https://docs.expo.dev/guides/local-app-development/) guide in Expo docs. If you prefer using a build service, refer to [EAS Build](https://docs.expo.dev/build/setup/). -Note that if you have already installed the `Expo Go` app (using something like `npx expo run` instead of doing the `--prebuild` local development steps...) then you must uninstall it first. The `Expo Go` app does not contain most non-Expo native modules like react-native-firebase, and you will see errors related to the native modules not being loaded if you try to use it. +Note: if you have already installed an Expo development build on your device/simulator (i.e. using `npx expo prebuild` and `npx expo run:`) prior to adding `react-native-firebase` to your project, then you may see errors related to the native modules not being loaded if you try to use it, e.g. `'Native module RNFBAppModule not found. Re-check module install, linking, configuration, build and install steps.'`. If so, you should uninstall the previous the development build from your device/simulator, do a clean build using `npx expo prebuild --clean`, and then redeploy using `npx expo run:`. #### Expo Tools for VSCode From 75770da04f7017a54b888a8530bde7cf7c86883e Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Sun, 9 Feb 2025 16:05:28 -0500 Subject: [PATCH 2/2] style(lint): `yarn lint:markdown --write` --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index bbeb4f9b10..0440652428 100644 --- a/docs/index.md +++ b/docs/index.md @@ -241,7 +241,7 @@ The following is an example `app.json` to enable the React Native Firebase modul If you are compiling your app locally, run [`npx expo prebuild --clean`](https://docs.expo.dev/workflow/prebuild/) to generate the native project directories. Then, follow the local app compilation steps described in [Local app development](https://docs.expo.dev/guides/local-app-development/) guide in Expo docs. If you prefer using a build service, refer to [EAS Build](https://docs.expo.dev/build/setup/). -Note: if you have already installed an Expo development build on your device/simulator (i.e. using `npx expo prebuild` and `npx expo run:`) prior to adding `react-native-firebase` to your project, then you may see errors related to the native modules not being loaded if you try to use it, e.g. `'Native module RNFBAppModule not found. Re-check module install, linking, configuration, build and install steps.'`. If so, you should uninstall the previous the development build from your device/simulator, do a clean build using `npx expo prebuild --clean`, and then redeploy using `npx expo run:`. +Note: if you have already installed an Expo development build on your device/simulator (i.e. using `npx expo prebuild` and `npx expo run:`) prior to adding `react-native-firebase` to your project, then you may see errors related to the native modules not being loaded if you try to use it, e.g. `'Native module RNFBAppModule not found. Re-check module install, linking, configuration, build and install steps.'`. If so, you should uninstall the previous the development build from your device/simulator, do a clean build using `npx expo prebuild --clean`, and then redeploy using `npx expo run:`. #### Expo Tools for VSCode