mirror of
https://github.com/standardnotes/mobile.git
synced 2026-05-24 22:44:41 -04:00
Updates
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -395,7 +395,7 @@ export default class Account extends Abstract {
|
||||
this.resaveOfflineData(null, true);
|
||||
}
|
||||
|
||||
this.mergeState({hasPasscode: !result});
|
||||
this.mergeState({hasPasscode: false});
|
||||
this.forceUpdate();
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user