2
0
mirror of synced 2025-01-10 14:16:27 +00:00
2017-08-26 06:46:37 +01:00

712 B

Usage

After creating a Firebase project and installing the library, you can then use it in your project by importing the library in your JavaScript code:

import firebase from 'react-native-firebase';

As the default app is pre-initialized natively there is no need to call initializeApp for the default app instance. Just import and go:

import firebase from 'react-native-firebase';

firebase.auth().signInAnonymously()
  .then((user) => {
    console.log(user.isAnonymous);
  });

Configure Default App Instance

See configure the default app instance.

Configuring RNFirebase

See configure RNFirebase.