Skip to content

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

fix glitches during animation

ammarahm-ed45d695acacb8
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index 3887569dc..bddaa3202 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -411,19 +411,19 @@ export const Menu = ({
alignSelf: 'center',
marginBottom: 20,
flexDirection: 'row',
- backgroundColor: colors.bg,
}}>
<TouchableOpacity
onPress={() => {
close();
- NavigationService.navigate('Login');
+ DDS.isTab
+ ? DeviceEventEmitter.emit('showLoginDialog')
+ : NavigationService.navigate('Login');
}}
activeOpacity={opacity / 2}
style={{
paddingVertical: pv + 5,
paddingHorizontal: 12,
- backgroundColor: colors.shade,
width: '100%',
justifyContent: 'flex-start',
alignItems: 'center',
diff --git a/apps/mobile/src/components/ModalMenu/index.js b/apps/mobile/src/components/ModalMenu/index.js
index 6f7fd2183..aa8755b63 100644
--- a/apps/mobile/src/components/ModalMenu/index.js
+++ b/apps/mobile/src/components/ModalMenu/index.js
@@ -72,7 +72,7 @@ export class ModalMenu extends Component {
this.setState({
showMenu: true,
});
- }, 50);
+ }, 0);
}}
animationType="fade"
onRequestClose={() => this.setState({visible: false})}>