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