Skip to content

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

add a delay in hiding the overlay

ammarahm-edd07b3f3cb67b
diff --git a/apps/mobile/src/views/Editor/EditorOverlay.js b/apps/mobile/src/views/Editor/EditorOverlay.js
index 6a7203b23..ca86f2f1d 100644
--- a/apps/mobile/src/views/Editor/EditorOverlay.js
+++ b/apps/mobile/src/views/Editor/EditorOverlay.js
@@ -21,7 +21,6 @@ const EditorOverlay = () => {
const [loading, setLoading] = useState(null);
const [error, setError] = useState(false);
const opacity = useValue(1);
- const translateY = useValue(6000);
const load = async _loading => {
clearTimeout(timer);
@@ -36,6 +35,7 @@ const EditorOverlay = () => {
clearTimeout(timer);
clearTimeout(timerError);
setError(false);
+ await sleep(500);
timing(opacity, {
toValue: 0,
duration: 150,