mirror of
https://github.com/standardnotes/mobile.git
synced 2026-01-27 17:18:12 -05:00
Use FlatList for tags
This commit is contained in:
@@ -429,8 +429,14 @@ export default class App {
|
||||
}
|
||||
|
||||
reload() {
|
||||
this.count = 0;
|
||||
Icons.get().loadIcons();
|
||||
this.startApp();
|
||||
setInterval(() => {
|
||||
this.count++;
|
||||
if(this.count < 10) {
|
||||
this.startApp();
|
||||
}
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -247,11 +247,7 @@ export default class Notes extends Abstract {
|
||||
this.presentFilterScreen();
|
||||
} else {
|
||||
// Although RNN is supposed to open this automatically, it doesn't sometimes. So this is to force it.
|
||||
// this.props.navigator.toggleDrawer({
|
||||
// side: 'left', // the side of the drawer since you can have two, 'left' / 'right'
|
||||
// animated: true, // does the toggle have transition animation or does it happen immediately (optional)
|
||||
// // to: 'open' // optional, 'open' = open the drawer, 'closed' = close it, missing = the opposite of current state
|
||||
// });
|
||||
this.openDrawer();
|
||||
}
|
||||
} else if(event.id == "settings") {
|
||||
this.presentSettingsScreen();
|
||||
@@ -259,6 +255,15 @@ export default class Notes extends Abstract {
|
||||
}
|
||||
}
|
||||
|
||||
openDrawer() {
|
||||
console.log("Opening drawer");
|
||||
this.props.navigator.toggleDrawer({
|
||||
side: 'left', // the side of the drawer since you can have two, 'left' / 'right'
|
||||
animated: false, // does the toggle have transition animation or does it happen immediately (optional)
|
||||
to: 'open' // optional, 'open' = open the drawer, 'closed' = close it, missing = the opposite of current state
|
||||
});
|
||||
}
|
||||
|
||||
presentNewComposer() {
|
||||
this.props.navigator.push({
|
||||
screen: 'sn.Compose',
|
||||
|
||||
Reference in New Issue
Block a user