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 is a web and mobile application development platform for building apps faster without managing infrastructure.
This instructions are based on the Official React Native Documentation and in the Official React Native Firebase plugin Documentation
brew install node brew install watchman
For Ubuntu systems Follow whits instructions
For other systems Refer to Node documentation
npm i -g react-native-cli
react-native init firebaseRn
npm install --save react-native-firebase react-native link
NOTE: For Android Package Name in Firebase, use the name of your app, in this example case is:
NOTE: Make sure you keep your
google-services.json at hand because it is required further on the config steps
NOTE: If the apps does not starts on the phone automatically, go to the Apps list and tap to open it