[🐴] Ensure keyboard gets dismissed when leaving screen (#4104)

zio/stable
Hailey 2024-05-18 18:25:42 -07:00 committed by GitHub
parent cb7ce1d22e
commit 3ca671d9aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import React, {useCallback} from 'react' import React, {useCallback} from 'react'
import {TouchableOpacity, View} from 'react-native' import {Keyboard, TouchableOpacity, View} from 'react-native'
import { import {
AppBskyActorDefs, AppBskyActorDefs,
ModerationCause, ModerationCause,
@ -46,6 +46,7 @@ export let MessagesListHeader = ({
if (isWeb) { if (isWeb) {
navigation.replace('Messages', {}) navigation.replace('Messages', {})
} else { } else {
Keyboard.dismiss()
navigation.goBack() navigation.goBack()
} }
}, [navigation]) }, [navigation])