diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-05 01:13:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 01:13:57 +0100 |
commit | 7448c8f78588e417d7daedd8828f8dc15a4a9858 (patch) | |
tree | 91ca8e63aeee86f3d0f63dde1df78bf03e6f89ac /src/components/dms/ActionsWrapper.tsx | |
parent | 91f820254905231c37f1496b2bcd3ae63a935e81 (diff) | |
download | voidsky-7448c8f78588e417d7daedd8828f8dc15a4a9858.tar.zst |
[🐴] Improve message pressing (#3864)
* allow tapping message when keyboard open * dismiss keyboard on open msg menu * show message info on press * Revert "show message info on press" This reverts commit 61d039a7024c27583aed7d1e9f1ff5b919dc7d30.
Diffstat (limited to 'src/components/dms/ActionsWrapper.tsx')
-rw-r--r-- | src/components/dms/ActionsWrapper.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/dms/ActionsWrapper.tsx b/src/components/dms/ActionsWrapper.tsx index 107e5eb8e..19a3e0424 100644 --- a/src/components/dms/ActionsWrapper.tsx +++ b/src/components/dms/ActionsWrapper.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from 'react' -import {Pressable, View} from 'react-native' +import {Keyboard, Pressable, View} from 'react-native' import Animated, { cancelAnimation, runOnJS, @@ -38,6 +38,7 @@ export function ActionsWrapper({ // Reanimated's `runOnJS` doesn't like refs, so we can't use `runOnJS(menuControl.open)()`. Instead, we'll use this // function const open = useCallback(() => { + Keyboard.dismiss() menuControl.open() }, [menuControl]) |