about summary refs log tree commit diff
path: root/src/components/Dialog
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-23 10:01:31 -0700
committerGitHub <noreply@github.com>2024-05-23 10:01:31 -0700
commit5217876f241a991e55d789cd5faa8d8ab1890d1b (patch)
tree274a75717f646acb3a304bdac1710d7b5ea0e579 /src/components/Dialog
parent3d1ed04a70aff9c08b713392ac0a4d3856ae16e9 (diff)
downloadvoidsky-5217876f241a991e55d789cd5faa8d8ab1890d1b.tar.zst
Add padding to dialogs when keyboard is open on Android (#4182)
* add keyboard padding to android dialogs

* missing `keyboardDismissMode` for `ScrollableInner`

* add to `MutedWords`

* add to `LabelsOnMe`
Diffstat (limited to 'src/components/Dialog')
-rw-r--r--src/components/Dialog/index.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx
index 315f863b5..f32e0e79e 100644
--- a/src/components/Dialog/index.tsx
+++ b/src/components/Dialog/index.tsx
@@ -1,5 +1,12 @@
 import React, {useImperativeHandle} from 'react'
-import {Dimensions, Pressable, StyleProp, View, ViewStyle} from 'react-native'
+import {
+  Dimensions,
+  Keyboard,
+  Pressable,
+  StyleProp,
+  View,
+  ViewStyle,
+} from 'react-native'
 import Animated, {useAnimatedStyle} from 'react-native-reanimated'
 import {useSafeAreaInsets} from 'react-native-safe-area-context'
 import BottomSheet, {
@@ -169,7 +176,8 @@ export function Outer({
           // Android
           importantForAccessibility="yes"
           style={[a.absolute, a.inset_0]}
-          testID={testID}>
+          testID={testID}
+          onTouchMove={() => Keyboard.dismiss()}>
           <BottomSheet
             enableDynamicSizing={!hasSnapPoints}
             enablePanDownToClose