[🐴] Ensure keyboard gets dismissed when leaving screen (#4104)
parent
cb7ce1d22e
commit
3ca671d9aa
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue