From 4de78fb69e095779e652c20c60b6f84a92881161 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 30 Apr 2024 16:11:41 +0100 Subject: [PATCH] use keyboardDismissMode rather than onScrollBeginDrag (#3767) --- src/components/dialogs/GifSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/GifSelect.tsx b/src/components/dialogs/GifSelect.tsx index 024188ec44..57389ba2b7 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 ? (