-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[📚] Add react-native-firebase in an expo managed project. #6990
Comments
Hi there - this would work best as a PR to the docs - you can propose a PR to docs by just clicking the edit button on the top right of every documentation change I do not personally use Expo so I cannot verify those and do not propose PRs to Expo docs, but our Expo users (like yourself!) are more than welcome to and I merge those regularly Thanks! |
@mikehardy if you reopen this, maybe I can tackle it (unless @Saad-Bashar you plan on doing this) |
No need to reopen the issue, we can still communicate, and you may open a PR any time |
But, where the |
You have to provide paths to the google-services.json |
Documentation Feedback
Right now there is a section on adding this package to an expo-managed project. That is already good. But I have faced few troubles following the docs. So I have added a few more details. Hope this is useful,
Summary of installing react-native-firebase package successfully in an expo project.
1. Install expo-dev-client
Since React Native Firebase requires custom native code, you need to install the
expo-dev-client
library in your project. It also allows configuring any native code required by React Native Firebase using Config plugins without writing native code yourself.To install
[expo-dev-client](https://docs.expo.dev/development/getting-started#installing--expo-dev-client--in-your-project)
, run the following command in your project:2. Install React Native Firebase
To use React Native Firebase, it is necessary to install the
@react-native-firebase/app
module. This module provides the core functionality for all other modules. It also adds custom native code to your project using a config plugin. You can install it using the following command:3. Add plugin
Go to
app.json
and add the following at the end,4. Install expo build properties
Install
expo-build-properties
by running,5. Expo prebuild
Then run expo prebuild,
6. Run the app,
Try first using an android device.
but if you need to run on an emulator or simulator, then
npx expo run:android
ornpx expo run:ios
command.React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: