From 3ca671d9aacb6137e10e2cf3cd9bc170af798389 Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 18 May 2024 18:25:42 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9F=90=B4]=20Ensure=20keyboard=20gets=20dis?= =?UTF-8?q?missed=20when=20leaving=20screen=20(#4104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dms/MessagesListHeader.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/dms/MessagesListHeader.tsx b/src/components/dms/MessagesListHeader.tsx index a6dff40326..1e6fd36092 100644 --- a/src/components/dms/MessagesListHeader.tsx +++ b/src/components/dms/MessagesListHeader.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from 'react' -import {TouchableOpacity, View} from 'react-native' +import {Keyboard, TouchableOpacity, View} from 'react-native' import { AppBskyActorDefs, ModerationCause, @@ -46,6 +46,7 @@ export let MessagesListHeader = ({ if (isWeb) { navigation.replace('Messages', {}) } else { + Keyboard.dismiss() navigation.goBack() } }, [navigation])