[js] Only subscribe to auth if RNFirebaseAuth exists
This commit is contained in:
parent
abf17d8d7f
commit
8c821e2612
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue