Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

reload navigation when device orientation is changed

ammarahm-edb0688582d0a1
diff --git a/apps/mobile/initializer.root.js b/apps/mobile/initializer.root.js
index 31624157d..0249559fa 100644
--- a/apps/mobile/initializer.root.js
+++ b/apps/mobile/initializer.root.js
@@ -211,11 +211,14 @@ const AppStack = React.memo(
if (DDS.isLargeTablet()) {
//console.log('setting large tab');
setDeviceMode('tablet', size);
+ sleep(300).then((r) => eSendEvent(eOpenSideMenu));
} else if (DDS.isSmallTab) {
//console.log('setting small tab');
setDeviceMode('smallTablet', size);
+ sleep(300).then((r) => eSendEvent(eOpenSideMenu));
} else {
setDeviceMode('mobile', size);
+ sleep(300).then((r) => eSendEvent(eOpenSideMenu));
}
}