Merge branch 'master' into auth-language
This commit is contained in:
commit
fbc97bc2c8
|
@ -6,6 +6,7 @@ import INTERNALS from '../../utils/internals';
|
|||
import { isIOS } from '../../utils';
|
||||
import ModuleBase from '../../utils/ModuleBase';
|
||||
import PACKAGE from '../../../package.json';
|
||||
import type App from '../core/firebase-app';
|
||||
|
||||
const FirebaseCoreModule = NativeModules.RNFirebase;
|
||||
|
||||
|
@ -21,6 +22,13 @@ export const MODULE_NAME = 'RNFirebaseUtils';
|
|||
export const NAMESPACE = 'utils';
|
||||
|
||||
export default class RNFirebaseUtils extends ModuleBase {
|
||||
constructor(app: App) {
|
||||
super(app, {
|
||||
moduleName: MODULE_NAME,
|
||||
namespace: NAMESPACE,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -51,7 +51,7 @@ export default {
|
|||
|
||||
if (isAndroid && namespace !== 'utils' && !INTERNALS.FLAGS.checkedPlayServices) {
|
||||
INTERNALS.FLAGS.checkedPlayServices = true;
|
||||
this.utils().checkPlayServicesAvailability();
|
||||
app.utils().checkPlayServicesAvailability();
|
||||
}
|
||||
|
||||
if (!APP_MODULES[app][namespace]) {
|
||||
|
|
Loading…
Reference in New Issue