mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-19 00:46:55 +08:00
[docs][core] persistence on dynamically created apps
This commit is contained in:
@@ -30,6 +30,9 @@ const iosConfig = {
|
||||
storageBucket: 'x',
|
||||
messagingSenderId: 'x',
|
||||
projectId: 'x',
|
||||
|
||||
// enable persistence by adding the below flag
|
||||
persistence: true,
|
||||
};
|
||||
|
||||
// pluck values from your `google-services.json` file you created on the firebase console
|
||||
@@ -41,6 +44,9 @@ const androidConfig = {
|
||||
storageBucket: 'x',
|
||||
messagingSenderId: 'x',
|
||||
projectId: 'x',
|
||||
|
||||
// enable persistence by adding the below flag
|
||||
persistence: true,
|
||||
};
|
||||
|
||||
const kittensApp = firebase.initializeApp(
|
||||
|
||||
Reference in New Issue
Block a user