[js] Only subscribe to auth if RNFirebaseAuth exists

This commit is contained in:
Chris Bianca 2017-05-30 16:23:51 +01:00
parent abf17d8d7f
commit 8c821e2612
1 changed files with 3 additions and 1 deletions

View File

@ -96,8 +96,10 @@ export default class Firebase {
this.admob = this._staticsOrInstance('admob', AdMobStatics, AdMob); this.admob = this._staticsOrInstance('admob', AdMobStatics, AdMob);
// init auth to start listeners // init auth to start listeners
if (NativeModules.RNFirebaseAuth) {
this.auth(); this.auth();
} }
}
/** /**
* Support web version of initApp. * Support web version of initApp.