Skip to content

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

fix gestures not working

ammarahm-edb445e92385aa
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index 7905d4c2a..a25b4f584 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -371,13 +371,19 @@ const App = () => {
<Animated.View
ref={ref => (editorRef = ref)}
+ onResponderTerminationRequest={true}
+ onStartShouldSetResponderCapture={false}
+ onStartShouldSetResponder={false}
+ onMoveShouldSetResponder={false}
+ onMoveShouldSetResponderCapture={false}
style={{
width: '100%',
height: '100%',
+ alignSelf: 'flex-end',
position: 'absolute',
- zIndex: 10,
backgroundColor: colors.bg,
elevation: 10,
+
transform: [
{
translateX: EditorPosition,
diff --git a/apps/mobile/src/components/SideMenu/index.js b/apps/mobile/src/components/SideMenu/index.js
index b3f1805f7..7a25c6da8 100644
--- a/apps/mobile/src/components/SideMenu/index.js
+++ b/apps/mobile/src/components/SideMenu/index.js
@@ -131,7 +131,7 @@ export default class SideMenu extends React.Component {
bottom: 0,
backgroundColor: 'black',
opacity: this.opacity,
- zIndex: 1,
+ zIndex: 999,
}}
/>
</TouchableWithoutFeedback>
@@ -145,7 +145,7 @@ export default class SideMenu extends React.Component {
style: {
display: 'flex',
position: 'absolute',
- zIndex: 1,
+ zIndex: 999,
},
});
}
@@ -185,7 +185,7 @@ export default class SideMenu extends React.Component {
style: {
display: 'flex',
position: 'absolute',
- zIndex: 1,
+ zIndex: 999,
},
});
if (
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index fec9173f2..1c7c77e40 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -323,8 +323,11 @@ const Editor = ({navigation, noMenu}) => {
const _onHardwareBackPress = async () => {
if (tapCount > 0) {
exitEditorAnimation();
+ if (note && note.id) {
+ ToastEvent.show('Note Saved!', 'success');
+ }
await clearEditor();
- ToastEvent.show('Note Saved!', 'success');
+
return true;
} else {
tapCount = 1;
@@ -410,6 +413,9 @@ const Editor = ({navigation, noMenu}) => {
simpleDialogEvent(TEMPLATE_EXIT_FULLSCREEN());
} else {
exitEditorAnimation();
+ if (note && note.id) {
+ ToastEvent.show('Note Saved!', 'success');
+ }
await clearEditor();
ToastEvent.show('Note Saved!', 'success');
}
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index fc3fdbb43..7b41a9cf2 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -12,6 +12,7 @@ import {eSendEvent} from '../../services/eventManager';
import NavigationService from '../../services/NavigationService';
import {SideMenuEvent} from '../../utils/utils';
import {eScrollEvent, eOnLoadNote} from '../../services/events';
+import {openEditorAnimation} from '../../utils/animations';
let count = 0;
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
SafeAreaView,
@@ -51,7 +52,8 @@ export const Home = ({navigation}) => {
} else {
SideMenuEvent.close();
SideMenuEvent.disable();
- NavigationService.navigate('Editor');
+ eSendEvent(eOnLoadNote, {type: 'new'});
+ openEditorAnimation();
}
}}
data={notes ? notes : []}>