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
improve editor-enter animation
ammarahm-ed9e2f8d38443b
diff --git a/apps/mobile/index.mobile.js b/apps/mobile/index.mobile.jsindex d07f6ae2c..29cd06dba 100644--- a/apps/mobile/index.mobile.js+++ b/apps/mobile/index.mobile.js@@ -10,6 +10,7 @@ import {EditorOpacity,EditorPosition,EditorScale,+ EditorTranslateY,} from './src/utils/animations';import {sideMenuRef} from './src/utils/refs';import {DDS} from './src/utils/utils';@@ -107,6 +108,9 @@ export const Initialize = () => {{translateX: EditorPosition,},+ {+ translateY:EditorTranslateY,+ },{scaleX: EditorScale,},diff --git a/apps/mobile/src/utils/animations.js b/apps/mobile/src/utils/animations.jsindex 4fff4d9b6..ad727aa48 100644--- a/apps/mobile/src/utils/animations.js+++ b/apps/mobile/src/utils/animations.js@@ -7,9 +7,11 @@ const {color, Value, timing} = Animated;export const EditorPosition = new Value(Dimensions.get('window').width * 1.5);export const EditorScale = new Value(0.99);export const EditorOpacity = new Value(0);+export const EditorTranslateY = new Value(10);export function openEditorAnimation() {EditorPosition.setValue(Dimensions.get('window').width * 1.5);+ EditorTranslateY.setValue(10);EditorOpacity.setValue(0);editing.currentlyEditing = true;let openConfigH = {@@ -23,6 +25,11 @@ export function openEditorAnimation() {toValue:1,easing: Easing.in(Easing.linear),}).start();+ timing(EditorTranslateY, {+ duration:300,+ toValue:0,+ easing: Easing.in(Easing.linear),+ }).start();timing(EditorOpacity, {duration:50,toValue:1,@@ -34,6 +41,7 @@ export function openEditorAnimation() {export function exitEditorAnimation() {EditorPosition.setValue(0);EditorOpacity.setValue(1);+ EditorTranslateY.setValue(0);editing.currentlyEditing = false;let openConfigH = {duration: 1,@@ -45,6 +53,11 @@ export function exitEditorAnimation() {toValue:0,easing: Easing.in(Easing.linear),}).start();+ timing(EditorTranslateY, {+ duration:150,+ toValue:40,+ easing: Easing.in(Easing.linear),+ }).start();timing(EditorScale, {duration:150,toValue:0.99,