* stash * move commons into the app * move utils module into app * Update index.d.ts * re-trigger build * fix eslint issues * Fix formatting eslint issues * move utils documentation to app * Dissalow number values in setUserProperties * fix test * add utils export to app module * clean up utils export * Move path helpers to utilities module * I have no idea * Update RNFBUtilsModule.m * remove duplicate util files * fix RNFBUtilsModule merge conflict * fix android build * Move path constants from storage to utils, remove old GH Actions * resolve remaining merge confs * resolve type definition conflict * add requiresMainQueueSetup to RNFBUtilsModule
1.6 KiB
title, description
| title | description |
|---|---|
| Quick Start | Getting started with the App package in React Native Firebase |
App Quick Start
Installation
Install this module with Yarn:
yarn add @react-native-firebase/app
Initializing Firebase
React Native Firebase provides two methods for initializing your with Firebase.
- Native initialization
- Client initialization
Native initialization
Native initialization is the preferred way of setting up React Native Firebase. This process involves adding the
google-services.json and GoogleService-Info.plist file generated via the Firebase console. The native method
is compatible with all other packages.
For further platform installation guides, view the Android & iOS documentation.
Client initialization
Similar to the Firebase Web SDK, React Native Firebase allows app
initialization via the client using initializeApp.
Due to limitation with some Firebase SDKs, the Remote Config, Crashlytics & Performance Monitoring modules will not work with this method of initialization.
For further information, view the client initialization documentation.
Module Usage
Import the default firebase instance into your project:
import firebase from '@react-native-firebase/app';
The instance is also accessible from other installed packages, for example:
import auth, { firebase } from '@react-native-firebase/auth';