Connecting my React Native Application with Firebase platform

Continuing our post on My First React Native app, today we will briefly explain how to connect your react native application to the Firebase platform, to quickly start working on your mobile app project.

Firebase

Firebase is a web and mobile application development platform for building apps faster without managing infrastructure.

Services:

NoSQL Database

Machine Learning Kit

Cloud Functions

Authentication framework

Hosting

Cloud Storage

Notifications

Analytics

React Native

React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI using declarative components.

7. On the project folder install the react-native-firebase library

8. Follow the instructions to setup the platform specific library and tools. For this example we will use Android

NOTE: For Android Package Name in Firebase, use the name of your app, in this example case is: com.firebasern
NOTE: Make sure you keep your google-services.json at hand because it is required further on the config steps

9. Open the Android Studio in the android folder of the project

10. Open or create an AVD (Emulator)

11. Run your app:

react-native run-android

NOTE: If the apps does not starts on the phone automatically, go to the Apps list and tap to open it