Adding react-native-firebase to Expo
closed
c
clark tank
Advantage of adding react-native-firebase to Expo:
A1) React-native-firebase provides much faster performance (~2x) over the web SDK
A2) 27k npm downloads, Good documentation, as well as being active in the past year! https://github.com/invertase/react-native-firebase/graphs/contributors
A3) Fully featured auto scaling backend for your users. That is what every entrepreneur wants. (scalable baas)
A4) Happier users like me or those who voted up! (Listen to your customers)
Issues with current web SDK implementation:
I1) It was designed from ground up for the web not mobile apps! ( For example: Firestore doesn't work on Android. )
I2) Since react-native is not their priority, it takes a long time to resolve react-native related issues (bugs)
I3) The Firebase Web SDK also runs on the JS thread, therefore potentially affecting the frame rate causing jank with animations, touch events etc.
Ruiqi Lee
Its been a year now and react-native-firebase already updated to v6, is it possible to add now?
Wodin
Ruiqi Lee: This is apparently not something Expo has control over. As Brent said in the comment he linked to:
"the [Firebase] SDK fully expects that there is one binary per app, and the Expo client has multiple apps inside of it."
So for the situation to change, the Firebase SDK would need to remove that assumption.
J
Jig Smog
+1 google provided login UI would be huge
Rahul Somkunwar
+1 needed Badly
Brent Vatne
closed
as far as we know, it is not currently possible to add firebase to the expo client. see more info at https://gist.github.com/brentvatne/9038b16b4f42a21cea40ad5c35fdb74c
Rajendran Nadar
Brent Vatne: :(
Joshua Mata
Brent Vatne: :(
Brent Vatne
open
after investigating this for a while, we don't plan on adding this to the client in its current form because the firebase native sdk doesn't work very well in the expo client environment where you can open various apps within a single instance of expo client. there may be a future where we can provide custom expo client builds wired up to a particular firebase app using react-native-firebase, but this isn't on our immediate roadmap. apologies for those who wanted it! hopefully improving the 'ejected' workflow will make it easier to use the parts you want from expo together with firebase in the very near future (more on that in https://blog.expo.io/expokit-2019-1e5cb02106f8)
Edward Koetsjarjan
Brent Vatne: I'm using expokit and ejecting expo client, then what understand from your post using react-native-firebase IS possible?
Brent Vatne
Edward Koetsjarjan: i imagine that it should be but i don't work on react-native-firebase so i can't say for certain. you can use bare workflow and it will certainly work
Can Barışcan
+1 🌈
Daniel Colgan
+1 🌈
Marcin Complak
+1 Crashlytics, Analytics and AdMob
aviyam ivgi
+1 FCM
Thijs Koerselman
+ 1 for firestore, fcm and analytics
Load More
→