From b70eb274ee57a0353a1ec8b7f48d4089ccfce1f5 Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Tue, 23 May 2017 11:50:44 +0100 Subject: [PATCH] Apply config() module to RNFirebase --- lib/firebase.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/firebase.js b/lib/firebase.js index 6e99fb56..a0096b21 100644 --- a/lib/firebase.js +++ b/lib/firebase.js @@ -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();