A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
optimize editor animation
ammarahm-ed16c4279433d6
diff --git a/apps/mobile/src/utils/animations.js b/apps/mobile/src/utils/animations.jsindex 1a13b67e8..69fb55203 100644--- a/apps/mobile/src/utils/animations.js+++ b/apps/mobile/src/utils/animations.js@@ -7,11 +7,11 @@ const {color, Value, timing} = Animated;export const EditorPosition = new Value(Dimensions.get('window').width * 1.5);export const EditorScale = new Value(1);export const EditorOpacity = new Value(0);-export const EditorTranslateY = new Value(150);+export const EditorTranslateY = new Value(Dimensions.get('window').height * 0.75);export function openEditorAnimation() {EditorPosition.setValue(Dimensions.get('window').width * 1.5);- EditorTranslateY.setValue(150);+ EditorTranslateY.setValue(Dimensions.get('window').height * 0.75);EditorOpacity.setValue(0);editing.currentlyEditing = true;@@ -24,7 +24,7 @@ export function openEditorAnimation() {easing: Easing.out(Easing.ease),}).start();timing(EditorOpacity, {- duration: 300,+ duration: 250,toValue: 1,easing: Easing.out(Easing.ease),}).start();@@ -38,15 +38,15 @@ export function exitEditorAnimation() {editing.currentlyEditing = false;timing(EditorOpacity, {- duration: 300,+ duration: 150,toValue: 0,easing: Easing.inOut(Easing.ease),}).start(() => {EditorPosition.setValue(Dimensions.get('window').width * 1.5);});timing(EditorTranslateY, {- duration: 150,- toValue: 150,+ duration: 200,+ toValue: Dimensions.get('window').height * 0.75,easing: Easing.inOut(Easing.ease),}).start();