Merge branch 'master' into auth-language

This commit is contained in:
Elliot Hesp 2018-01-08 09:22:53 +00:00
commit fbc97bc2c8
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -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]) {