Skip to content

Commit 9f7b03c

Browse files
committed
Fixed loading for iphone
1 parent d946685 commit 9f7b03c

File tree

367 files changed

+270
-44563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+270
-44563
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ npm install
500500

501501
The following is left to be done:
502502

503+
- [ ] Complete FirebaseModule functionality
504+
- [ ] Document FirebaseModule
503505
- [ ] Add Android support
504506
- [ ] Add Cloud Messaging
505507
- [ ] Move to use swift (cleaner syntax)

firestack.ios.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,23 @@ export class Firestack {
2222
this._remoteConfig = options.remoteConfig || {};
2323
delete options.remoteConfig;
2424

25-
this.appInstance = app.initializeApp(options);
2625
this.configured = false;
2726
this._debug = options.debug || false;
2827

2928
this.eventHandlers = {};
29+
30+
this.configure(options);
3031
}
3132

3233
configure(opts) {
3334
opts = opts || {};
3435
const firestackOptions = Object.assign({}, this.options, opts);
36+
this.appInstance = app.initializeApp(firestackOptions);
3537
return promisify('configureWithOptions')(firestackOptions)
3638
.then((...args) => {
3739
this.configured = true;
3840
return args;
39-
});
41+
}).catch((err) => {})
4042
}
4143

4244
// Auth
@@ -51,6 +53,12 @@ export class Firestack {
5153
return promisify('unlistenForAuth')();
5254
}
5355

56+
setStore(store) {
57+
if (store) {
58+
this._store = store;
59+
}
60+
}
61+
5462
/**
5563
* Create a user with the email/password functionality
5664
* @param {string} email The user's email
@@ -234,9 +242,8 @@ export class Firestack {
234242
/**
235243
* Redux store
236244
**/
237-
store(store) {
238-
this._store = store;
239-
return this;
245+
get store() {
246+
return this._store;
240247
}
241248

242249
on(name, cb) {

ios/Firestack.xcodeproj/project.pbxproj

Lines changed: 124 additions & 44 deletions
Large diffs are not rendered by default.

ios/Pods/Local Podspecs/Firestack.podspec.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

ios/Pods/Pods.xcodeproj/xcuserdata/Cheol.xcuserdatad/xcschemes/Pods-Firestack.xcscheme

Lines changed: 0 additions & 80 deletions
This file was deleted.

ios/Pods/Pods.xcodeproj/xcuserdata/Cheol.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 22 deletions
This file was deleted.

ios/Pods/React/LICENSE

Lines changed: 0 additions & 30 deletions
This file was deleted.

ios/Pods/React/LICENSE-CustomComponents

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)