4

I'm building a React Native app with Firebase for backend, and I couldn't find good information to help me decide if I should go with the official firebase web library, or react-native-firebase.

This article from Firebase says

"With the updates in the 3.1.0 SDK, almost all of the JavaScript SDK’s functionality should now work smoothly in React Native"

but at the react-native-firebase github docs, it says

The Web SDK doesn't support many of Firebase's services.

Normally I would decide to go with the official Firebase Web SDK, but I see there's many people that complain about it, so I'm not sure what to do. Any advice/help would be appreciated. Thank you.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
romin21
  • 1,532
  • 1
  • 14
  • 35
  • 1
    Which features of firebase you are going to use with react native? – Ravi Oct 16 '18 at 12:26
  • @RaviRupareliya not sure at this point, that's why I want to go with the one that provides more Firebase's services. – romin21 Oct 16 '18 at 12:28
  • 2
    In that case you should go with react-native-firebase because it is using native library to give support in react native, so you will be getting almost everything – Ravi Oct 16 '18 at 12:29
  • @RaviRupareliya thank you for the quick answer. Does the fact that I'm using Expo matter? – romin21 Oct 16 '18 at 12:32
  • @hms with expo you'll have to eject to ExpoKit and add the modules you need starting from https://github.com/expo/expo/tree/master/packages/expo-firebase-app (they're react-native-firebase but reworked for Expo specifically) – Salakar Oct 16 '18 at 14:30

1 Answers1

0

In my experience react-native-firebase is very good. There are very few things you can't do that you could do with the web version and the maintainers are very helpful.

My only complaint is that unit testing is very difficult/impossible. If you intend to test your app properly you will be limited to integration tests with something like detox.