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
do not animate a dialog with input
ammarahm-ed35755767bcc5
diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.jsindex ea83744b6..4227c7a84 100644--- a/apps/mobile/src/components/Dialog/BaseDialog.js+++ b/apps/mobile/src/components/Dialog/BaseDialog.js@@ -23,7 +23,8 @@ const BaseDialog = ({centered = true,bottom = false,background = null,- animated = true+ animated = true,+ bounce}) => {const floating = useIsFloatingKeyboard();@@ -66,6 +67,7 @@ const BaseDialog = ({<BouncingViewduration={400}animated={animated}+ initialScale={bounce ? 0.9 : 1}style={[styles.backdrop,{diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.jsindex 1d6d7e6eb..9ee560534 100644--- a/apps/mobile/src/components/Dialog/index.js+++ b/apps/mobile/src/components/Dialog/index.js@@ -88,13 +88,14 @@ export const Dialog = ({context = 'global'}) => {visible && (<BaseDialogstatusBarTranslucent={false}+ bounce={!dialogInfo.input}onShow={async () => {if (dialogInfo.input) {inputRef.current?.setNativeProps({text:dialogInfo.defaultValue});- await sleep(100);+ await sleep(300);inputRef.current?.focus();}}}diff --git a/apps/mobile/src/components/Transitions/bouncingview.js b/apps/mobile/src/components/Transitions/bouncingview.jsindex b1f6a1956..097bf494e 100644--- a/apps/mobile/src/components/Transitions/bouncingview.js+++ b/apps/mobile/src/components/Transitions/bouncingview.js@@ -6,7 +6,7 @@ export const BouncingView = ({style,duration = 600,animated = true,- initialScale = 0.8+ initialScale = 0.9}) => {const scale = Animated.useValue(!animated ? 1 : initialScale);