2
0
mirror of synced 2025-02-03 10:03:29 +00:00

[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

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();
}
}
/**