React Native Integration with Firebase

React Native Integration with Firebase

ยท

1 min read

Here are following steps :-

Step-1:-

Create React-Native Project with following command in Your terminal

 react-native init YourProjectName

Step-2:-

Install required packages for building project

npm install    @react-native-firebase/app
    @react-native-firebase/database
    react-native-paper

Step-3:-

Visit Firebase After setting up account

Create your project

After creating project choose your type of project for android ,iOS etc

Most Important Your Package name should be same as in the React Native Project You can find it here

com.assignment is package name android/app/src/main/AndroidManifest.xml

after That=========>

Dwonload this file and Paste in android/app

Now go to android/build.gradle file and add this

classpath 'com.google.gms:google-services:4.3.12'

go to android/app/build.gradle add this in Starting of file

add this two line===>

implementation platform('com.google.firebase:firebase-bom:30.2.0')
   implementation 'com.google.firebase:firebase-analytics'

Now you are ready to go ๐Ÿ˜

ย