[🐴] Dismiss keyboard before opening convo menu (#3862)

* Dismiss keyboard before opening convo menu

* call `props.onPress()` instead
This commit is contained in:
Samuel Newman
2024-05-05 00:39:52 +01:00
committed by GitHub
parent 4862bc2ba8
commit 9b7818d358
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -1,5 +1,5 @@
import React, {useCallback} from 'react'
import {Pressable} from 'react-native'
import {Keyboard, Pressable} from 'react-native'
import {AppBskyActorDefs} from '@atproto/api'
import {ChatBskyConvoDefs} from '@atproto-labs/api'
import {msg, Trans} from '@lingui/macro'
@@ -88,6 +88,11 @@ let ConvoMenu = ({
{({props, state}) => (
<Pressable
{...props}
onPress={() => {
Keyboard.dismiss()
// eslint-disable-next-line react/prop-types -- eslint is confused by the name `props`
props.onPress()
}}
style={[
a.p_sm,
a.rounded_sm,