[🐴] 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 {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])