Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Archiving expo-firebase

We started building expo-firebase based off of react-native-firebase in order to attempt to get it to work well within the Expo client. It turned out that there wasn't a good way to do this - the SDK fully expects that there is one binary per app, and the Expo client has multiple apps inside of it. We weren't able to work around this.

If you'd like to use Firebase in the Expo client with the managed workflow, we'd recommend using the Firebase JS SDK. It supports Firebase Realtime Database and Firebase Storage. If you'd like access to the full suite of native firebase tools, we recommend using the bare workflow and react-native-firebase, because we cannot support this in the Expo client currently.

Copy link

nandorojo commented Sep 12, 2019

is there documentation for Expo Firebase Analytics? (if yes, too hard to find)

@kuriel-trivu Firebase Analytics requires react-native-firebase (and thus won't work on a managed expo project). However, I think that it works out-of-the box on Android devices when you're using the firebase JS SDK on a managed expo project. I'm not certain about this, so I don't want to give you the wrong answer, but in my experience, users with Android automatically show up on Firebase Analytics.

Are you able to test out an Android device and see if the same happens for you?

Copy link

kuriel-trivu commented Sep 12, 2019

I think that was in past, now, Expo sdk 34 has Firebase again in the expo-modules way.

we added firebase as documentation says, but there is no details about how to use Firebase Analytics (v34.0.0)

The docs only mentions Analytics but no more info


Copy link

StefKors commented Oct 2, 2019

I was also wondering about this. it mentions analytics without explaining or linking to docs

Copy link

nandorojo commented Oct 2, 2019

My best guess is that the mention of analytics is from a previous SDK. Expo only supports the firebase JS SDK in a managed project.

Copy link

smontlouis commented Oct 4, 2019

Analytics web is out. Unfortunately there is an error "document is not defined" when trying to use firebase analytics web in Expo

Copy link

StefKors commented Oct 4, 2019

Yeah I also haven't found a workaround, I ended up going with this package and it works well enough

Copy link

brentvatne commented Oct 10, 2019

this is a good issue to comment on to discuss firebase analytics in managed expo projects: firebase/firebase-js-sdk#2244

Copy link

VanLaerAshley commented Dec 9, 2019

This is the end of the expo horizon! :o

Copy link

nandorojo commented Dec 9, 2019

I know this might not be your ideal answer, but the Segment / expo-segment integration is pretty nice. It does still require a work-around for expo web, including customizing the index.html file and a few other small details, but I'm sure that will get worked out soon enough.

Copy link

fparhat-rbi commented Feb 14, 2022

If someone wanted to enable Crashlytics or Firebase Performance traces, is the only way via config-plugins and creating new custom expo modules?

Has anyone successfully integrated Crashlytics of Firebase Performance into their expo applications thus far?

Copy link

nandorojo commented Feb 14, 2022

you can now use react-native-firebase with config plugins, I would do that

Copy link

raiss commented Mar 18, 2022

@nandorojo does it mean the expo doesn't need to be ejected?

Copy link

nandorojo commented Mar 18, 2022

basically. you should learn about expo config plugins and custom dev clients

Copy link

daurelien commented May 18, 2022

i'm using expo app, added expo-firebase-analytics to get analytics with js sdk. (it work)
I also want to get crashlytics but the expo library (expo-crashlytics) is deprecated ... any issue ?
(i can't eject expo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment