Skip to content

Commit

Permalink
[🐴] Ensure keyboard gets dismissed when leaving screen (#4104)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored May 19, 2024
1 parent cb7ce1d commit 3ca671d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dms/MessagesListHeader.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -46,6 +46,7 @@ export let MessagesListHeader = ({
if (isWeb) {
navigation.replace('Messages', {})
} else {
Keyboard.dismiss()
navigation.goBack()
}
}, [navigation])
Expand Down

0 comments on commit 3ca671d

Please sign in to comment.