From daa988e8d263e69100e52aa838720a291ca0daa1 Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 28 Nov 2017 14:49:21 +0000 Subject: [PATCH] [tests] enableLogging on firestore + database --- tests/src/firebase.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/src/firebase.js b/tests/src/firebase.js index 033b438b..f51fb163 100644 --- a/tests/src/firebase.js +++ b/tests/src/firebase.js @@ -2,9 +2,11 @@ import { Platform } from 'react-native'; import firebase from 'firebase'; import RNfirebase from './../firebase'; - import DatabaseContents from './tests/support/DatabaseContents'; +RNfirebase.database.enableLogging(true); +RNfirebase.firestore.enableLogging(true); + const config = { apiKey: 'AIzaSyDnVqNhxU0Biit9nCo4RorAh5ulQQwko3E', authDomain: 'rnfirebase-b9ad4.firebaseapp.com', @@ -42,6 +44,8 @@ const instances = { another: RNfirebase.initializeApp(Platform.OS === 'ios' ? ios : android, 'anotherApp'), }; + + console.log('RNApps -->', RNfirebase.apps); // natively initialized apps are already available at app run time,