Coder Social home page Coder Social logo

reactnative-firebase-setup's Introduction

React Native Firebase Setup

Installation :

Installing React Native Firebase requires a few steps; installing the NPM module, adding the Firebase config files & rebuilding your application.The @react-native-firebase/app module must be installed before using any other Firebase service.

# Using npm
npm install --save @react-native-firebase/app

# Using Yarn
yarn add @react-native-firebase/app

Firebase Console Setup :

  • Open Filebase Console and then click Get Started

    alt text

  • Then Click Create a Project

    alt text

  • If you already created a project then click Add project

    alt text

  • Then give a project name

    alt text

  • If you don't want firebase analytics then dasibale it and click Create Project

    alt text

  • When your projrct is created then click Continue

    alt text

Android Setup :

To allow the Android app to securely connect to your Firebase project, a configuration file must be downloaded and added to your project.

Generating Android credentials :

  • Open Filebase Console and then click this android icon

    alt text

  • Then add your android package name ... you can find it here android/app/src/main/java/MainActivity.java . then app nickname is optional ... after add the package name then click Register app

    alt text

  • Then download this google-services.json file and past it android/app/ here ... after adding json file click Next

    alt text

Configure Firebase with Android credentials :

  • Now first, add the google-services plugin as a dependency inside of your /android/build.gradle file:
buildscript {
  dependencies {
    // ... other dependencies
    classpath 'com.google.gms:google-services:4.3.10'  // Add this line
  }
}
  • Lastly, execute the plugin by adding the following to your /android/app/build.gradle file:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services' // <- Add this line

alt text

  • Now all the step done so click Continue to console

alt text

reactnative-firebase-setup's People

Watchers

 avatar

Forkers

ets-android1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.