How to use firebase with react-native?

255 views
Skip to first unread message

William Hollacsek

unread,
Jun 27, 2016, 11:05:22 AM6/27/16
to Firebase Google Group
What is currently the recommended way to integrate firebase with react-native?

Should we use reactfire or integrate the iOS/Android SDK then create bridges to JS ourself?

Currently I'm using firebase Analytics and I need to log some official events such as first_open and session_start. The only solution a I see is to integrate the native SDK and create bridges. is that true or there is another way?

Jacob Wenger

unread,
Jun 27, 2016, 12:00:54 PM6/27/16
to fireba...@googlegroups.com
If you want to use Analytics, you will need to go the native bridge path since the JavaScript SDK does not support the Analytics product. You may be interested in the react-native-firebase-adapter which comes from a community member. The announcement discussion is here in case you want to talk about specifics with them.

If you just want to use the Realtime Database or Auth pieces, you can just use the JavaScript SDK itself. However, we are still working on upgrading the latest 3.x.x SDK to work in React Native, although support should be coming soon.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/43f6d51a-e87e-4ddd-a64b-2217780cf88c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

William Hollacsek

unread,
Jun 28, 2016, 9:53:43 AM6/28/16
to Firebase Google Group
Thanks for the response Jacob!

Jacob Wenger

unread,
Jun 28, 2016, 6:56:25 PM6/28/16
to fireba...@googlegroups.com
Version 3.1.0 of the JavaScript SDK was just released and it is now compatible with React Native. Read more about the release here.

Reply all
Reply to author
Forward
0 new messages