Skip to content

Commit

Permalink
use keyboardDismissMode rather than onScrollBeginDrag (#3767)
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzius authored Apr 30, 2024
1 parent eb8bfd1 commit 4de78fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dialogs/GifSelect.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4de78fb

Please sign in to comment.