From f94c7279f68ca15c1d64a826344ba714b7fbf762 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Thu, 28 Sep 2017 09:06:53 -0500 Subject: [PATCH] Use FlatList for tags --- src/app.js | 8 +++++++- src/screens/Notes.js | 15 ++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/app.js b/src/app.js index 28fd50e9..3bd714c9 100644 --- a/src/app.js +++ b/src/app.js @@ -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); } } diff --git a/src/screens/Notes.js b/src/screens/Notes.js index 1b941096..bd6f3324 100644 --- a/src/screens/Notes.js +++ b/src/screens/Notes.js @@ -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',