diff --git a/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx b/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx
index 04a138120b..f3a8128c42 100644
--- a/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx
+++ b/apps/wallet-mobile/src/components/Modal/ModalScreen.tsx
@@ -2,6 +2,7 @@ import {useCardAnimation} from '@react-navigation/stack'
import React from 'react'
import {
Animated,
+ GestureResponderEvent,
KeyboardAvoidingView,
NativeTouchEvent,
Platform,
@@ -36,44 +37,50 @@ export const ModalScreen = () => {
}
return (
-
-
-
+
+
+
- true}>
-
+
+
+
-
-
-
+ {content}
+
+
+
+
+ >
)
}
-const Header = () => {
+const Header = (props: {
+ onResponderMove?: ({nativeEvent}: {nativeEvent: NativeTouchEvent}) => void
+ onStartShouldSetResponder?: () => boolean
+}) => {
const {title} = useModal()
return (
-
+
@@ -94,6 +101,9 @@ const styles = StyleSheet.create({
justifyContent: 'flex-end',
alignSelf: 'stretch',
},
+ cancellableArea: {
+ flexGrow: 1,
+ },
backdrop: {
...StyleSheet.absoluteFillObject,
backgroundColor: 'rgba(0, 0, 0, 0.5)',