about summary refs log tree commit diff
path: root/src/components/dialogs/GifSelect.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-04-30 16:11:41 +0100
committerGitHub <noreply@github.com>2024-04-30 16:11:41 +0100
commit4de78fb69e095779e652c20c60b6f84a92881161 (patch)
tree4e628bdfe7f638f7d4a7414ef8ddd08e9016fa5d /src/components/dialogs/GifSelect.tsx
parenteb8bfd11d14a87983b210bea4a619d2dd7c51cdf (diff)
downloadvoidsky-4de78fb69e095779e652c20c60b6f84a92881161.tar.zst
use keyboardDismissMode rather than onScrollBeginDrag (#3767)
Diffstat (limited to 'src/components/dialogs/GifSelect.tsx')
-rw-r--r--src/components/dialogs/GifSelect.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/dialogs/GifSelect.tsx b/src/components/dialogs/GifSelect.tsx
index 024188ec4..57389ba2b 100644
--- a/src/components/dialogs/GifSelect.tsx
+++ b/src/components/dialogs/GifSelect.tsx
@@ -1,5 +1,5 @@
 import React, {useCallback, useMemo, useRef, useState} from 'react'
-import {Keyboard, TextInput, View} from 'react-native'
+import {TextInput, View} from 'react-native'
 import {Image} from 'expo-image'
 import {BottomSheetFlatListMethods} from '@discord/bottom-sheet'
 import {msg, Trans} from '@lingui/macro'
@@ -216,7 +216,7 @@ function GifList({
         keyExtractor={(item: Gif) => item.id}
         // @ts-expect-error web only
         style={isWeb && {minHeight: '100vh'}}
-        onScrollBeginDrag={() => Keyboard.dismiss()}
+        keyboardDismissMode="on-drag"
         ListFooterComponent={
           hasData ? (
             <ListFooter