Apply config() module to RNFirebase
This commit is contained in:
parent
3cf04908c3
commit
b70eb274ee
@ -14,7 +14,7 @@ import Database, { statics as DatabaseStatics } from './modules/database';
|
||||
import Messaging, { statics as MessagingStatics } from './modules/messaging';
|
||||
import Analytics from './modules/analytics';
|
||||
import Crash from './modules/crash';
|
||||
import RemoteConfig from './modules/remoteConfig';
|
||||
import RemoteConfig from './modules/config';
|
||||
|
||||
const instances: Object = { default: null };
|
||||
const FirebaseModule = NativeModules.RNFirebase;
|
||||
@ -32,7 +32,7 @@ export default class Firebase {
|
||||
_analytics: ?Object;
|
||||
_constants: ?Object;
|
||||
_messaging: ?Object;
|
||||
_remoteConfig: ?Object;
|
||||
_config: ?Object;
|
||||
_crash: ?Object;
|
||||
|
||||
auth: Function;
|
||||
@ -41,7 +41,7 @@ export default class Firebase {
|
||||
database: Function;
|
||||
analytics: Function;
|
||||
messaging: Function;
|
||||
remoteConfig: Function;
|
||||
config: Function;
|
||||
|
||||
eventHandlers: Object;
|
||||
debug: boolean;
|
||||
@ -85,7 +85,7 @@ export default class Firebase {
|
||||
this.messaging = this._staticsOrInstance('messaging', MessagingStatics, Messaging);
|
||||
this.analytics = this._staticsOrInstance('analytics', {}, Analytics);
|
||||
this.crash = this._staticsOrInstance('crash', {}, Crash);
|
||||
this.remoteConfig = this._staticsOrInstance('remoteConfig', {}, RemoteConfig);
|
||||
this.config = this._staticsOrInstance('config', {}, RemoteConfig);
|
||||
|
||||
// init auth to start listeners
|
||||
this.auth();
|
||||
|
Loading…
x
Reference in New Issue
Block a user