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
add animation parameter to BaseDialog
ammarahm-ed8483b14ca436
diff --git a/apps/mobile/src/components/Dialog/BaseDialog.js b/apps/mobile/src/components/Dialog/BaseDialog.jsindex fa8fdb106..fbd431939 100644--- a/apps/mobile/src/components/Dialog/BaseDialog.js+++ b/apps/mobile/src/components/Dialog/BaseDialog.js@@ -1,17 +1,35 @@import React from 'react';-import {Modal, StyleSheet, TouchableOpacity, View} from 'react-native';+import {+ Animated,+ Modal,+ StyleSheet,+ TouchableOpacity,+ View,+} from 'react-native';import {useTracked} from '../../provider';-const BaseDialog = ({visible, onRequestClose, children, onShow}) => {+const BaseDialog = ({+ visible,+ onRequestClose,+ children,+ onShow,+ animation = 'fade',+}) => {const [state, dispatch] = useTracked();+ const scaleValue = new Animated.Value(1);+return (<Modalvisible={visible}transparent={true}animatedstatusBarTranslucent- onShow={onShow}- animationType="fade"+ onShow={() => {+ if (onShow) {+ onShow();+ }+ }}+ animationType={animation}onRequestClose={onRequestClose}><Viewstyle={[@@ -26,6 +44,7 @@ const BaseDialog = ({visible, onRequestClose, children, onShow}) => {onPress={onRequestClose}style={styles.overlayButton}/>+{children}</View></Modal>