use keyboardDismissMode rather than onScrollBeginDrag (#3767)

zio/stable
Samuel Newman 2024-04-30 16:11:41 +01:00 committed by GitHub
parent eb8bfd11d1
commit 4de78fb69e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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