diff --git a/lib/modules/utils/index.js b/lib/modules/utils/index.js index 6b9ade59..d6629bb0 100644 --- a/lib/modules/utils/index.js +++ b/lib/modules/utils/index.js @@ -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, + }); + } + /** * */ diff --git a/lib/utils/apps.js b/lib/utils/apps.js index 3be466e7..5e3a9c7f 100644 --- a/lib/utils/apps.js +++ b/lib/utils/apps.js @@ -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]) {