[🐴] Dismiss keyboard before opening convo menu (#3862)
* Dismiss keyboard before opening convo menu * call `props.onPress()` instead
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user