[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,7 +96,9 @@ export default class Firebase {
this.admob = this._staticsOrInstance('admob', AdMobStatics, AdMob);
// init auth to start listeners
this.auth();
if (NativeModules.RNFirebaseAuth) {
this.auth();
}
}
/**