Skip to content

Commit 0c06e85

Browse files
authored
docs(expo): emphasize important instructions in Expo set up (#5827)
* Update index.md Reinforcing some of the more important Expo set up steps so that they're not missed on a quick scan. Adding the exact commands that are required to prevent errors when trying to connect to Firebase. * address semantic issue with EAS abbreviation
1 parent 4e8e81c commit 0c06e85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ React Native Firebase cannot be used in the "Expo Go" app, because [it requires
264264

265265
_If you're using [Bare Workflow](https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow), please follow the above installation steps instead._
266266

267+
The recommendation is to use a [custom development client](https://docs.expo.dev/clients/getting-started/). If starting a new app, you can run `npx create-react-native-app -t with-dev-client` to have this set up automatically. It will also allow you to use the Expo Application Service to test the android and iOS builds.
268+
267269
After installing the `@react-native-firebase/app` NPM package, add the [config plugin](https://docs.expo.io/guides/config-plugins/) to the [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`.
268270

269271
Also, you have to provide paths to the `google-services.json` and `GoogleService-Info.plist` files by specifying the [`expo.android.googleServicesFile`](https://docs.expo.io/versions/latest/config/app/#googleservicesfile-1) and [`expo.ios.googleServicesFile`](https://docs.expo.io/versions/latest/config/app/#googleservicesfile) fields respectively.
@@ -288,7 +290,7 @@ The `app.json` for integration that included the optional crashlytics and perfor
288290
}
289291
```
290292

291-
Next, rebuild your app as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide.
293+
Next, you need to use the `expo prebuild --clean` command as described in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide to rebuild your app with the plugin changes. If this command isn't run, you'll encounter connection errors to Firebase.
292294

293295
Config plugins are only required for React Native Firebase modules, which require custom native installation steps - e.g. modifying the Xcode project, `Podfile`, `build.gradle`, `AndroidManifest.xml` etc. Packages without native steps required will work out of the box.
294296

0 commit comments

Comments
 (0)