# Integration Firebase with React Native Project

Today, I’m going to tell you how you can integrate the firebase within your react native project.

For same you can follow react native firebase official document.

Here, are the steps for same-

**Steps**:

a) install the react native firebase app module- “**npm install --save @react-native-firebase/app**”

b) Go to firebase console and create new project-

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753003630823/47fd8d0f-26c5-4d2d-9dea-b7029197476b.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753003686534/c5445980-6fbc-40ba-999c-54c4b3ae9ffb.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753003733834/f952d94e-573e-4aa5-87d4-28c63e21eb7a.png align="center")

Click on Create project, your project will get created in firebase.

ref— For firebase integration you can follow official document for react native firebase-

[https://rnfirebase.io/](https://rnfirebase.io/)

c) Now, to get the certificate SHA- go in terminal of your project and run-

**cd android && ./gradlew signingReport**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753004609825/0897f6ca-b9aa-47a9-a46c-9f3c0b0c4f08.png align="center")

d) Now, go to your project in firebase and register your app—if its for android then click on android-

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753004669893/1e15f14c-a2ca-4575-b416-76645c29d9c9.png align="center")

e) Register your app and enter your project package name -(you can find the project name under MainApplication.kt file in your project.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1753004790286/39c41b06-5ef6-4bb7-bb01-22e210e463f4.png align="center")

f) After filling all required field click on Register app and download the `google-services.json` file and place it inside of your project at the following location: `/android/app/google-services.json`.

g) Last step is to configure firebase with android credentials-

First, add the `google-services` plugin as a dependency inside of your `/android/build.gradle` file:

```plaintext
buildscript {
  dependencies {
    // ... other dependencies
    classpath 'com.google.gms:google-services:4.4.3'
    // Add me --- /\
  }
}
```

Lastly, execute the plugin by adding the following to your `/android/app/build.gradle` file:

```plaintext
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services' // <- Add this line
```

Now, the firebase integration in your react native project is done. You can re-run your app and it will build successful.

Follow me in next article where we’ll add push notification functionality to react native project.
