This commit is contained in:
Mo Bitar
2018-07-12 08:54:49 -05:00
parent af1fdf715e
commit e31fe4cfd2
4 changed files with 24 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ export default class ApplicationState {
}
}
// An app cycle change are natural events like active, inactive, background,
// An app cycle change are natural events like active, inactive, background,
// while non-app cycle events are custom events like locking and unlocking
isStateAppCycleChange(state) {

View File

@@ -1,3 +1,14 @@
// Apparently Android doesn't support symbols.
// https://github.com/facebook/react-native/issues/15902
// symbol polyfills
global.Symbol = require('core-js/es6/symbol');
require('core-js/fn/symbol/iterator');
// collection fn polyfills
require('core-js/fn/map');
require('core-js/fn/set');
require('core-js/fn/array/find');
global._ = require('lodash');
import {
@@ -23,4 +34,14 @@ global.SFAuthManager = SFAuthManager;
import SF from "./lib/sfjs/sfjs"
global.SFJS = SF.get();
import 'sn-models';
import {
SNNote,
SNTag,
SNTheme,
SNComponent
} from 'sn-models';
global.SNNote = SNNote;
global.SNTag = SNTag;
global.SNTheme = SNTheme;
global.SNComponent = SNComponent;

View File

@@ -12,13 +12,6 @@ export default class Storage extends SFStorageManager {
return this.instance;
}
constructor() {
super();
AsyncStorage.getAllKeys().then((keys) => {
console.log("all model keys", keys);
})
}
async getItem(key) {
try {
return AsyncStorage.getItem(key);

View File

@@ -395,7 +395,7 @@ export default class Account extends Abstract {
this.resaveOfflineData(null, true);
}
this.mergeState({hasPasscode: !result});
this.mergeState({hasPasscode: false});
this.forceUpdate();
}
})