Skip to content

Commit 135d835

Browse files
committed
Updated firestack to accept no object in firestack constructor
1 parent 4e6f4e6 commit 135d835

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

android/src/main/java/io/fullstack/firestack/FirestackDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private DatabaseReference getDatabaseReferenceAtPath(final String path) {
172172
}
173173

174174
private WritableMap dataSnapshotToMap(String name, DataSnapshot dataSnapshot) {
175-
WritableMap data = Arguments.createMap();
175+
WritableMap data = Arguments.cregateMap();
176176

177177
data.putString("key", dataSnapshot.getKey());
178178
data.putBoolean("exists", dataSnapshot.exists());

lib/firestack.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ export class Firestack {
2727

2828
constructor(options) {
2929
this.options = options || {};
30-
this._debug = options.debug || false;
30+
this._debug = this.options.debug || false;
3131
log = this._log = new Log('firestack', this._debug);
3232

3333
log.info('Creating new instance');
3434

35-
this._remoteConfig = options.remoteConfig || {};
36-
delete options.remoteConfig;
35+
this._remoteConfig = this.options.remoteConfig || {};
36+
delete this.options.remoteConfig;
3737

3838
this.configured = this.options.configure || false;
3939
this.auth = null;
4040

4141
this.eventHandlers = {};
4242

43-
log.info('Calling configure with options', options);
44-
this.configure(options);
43+
log.info('Calling configure with options', this.options);
44+
this.configure(this.options);
4545

4646
this._auth = new Authentication(this);
4747
}

0 commit comments

Comments
 (0)