dismiss keyboard on open msg menu

This commit is contained in:
Samuel Newman
2024-05-05 01:01:49 +01:00
parent 14b676faf5
commit 1748ba5dcd
+2 -1
View File
@@ -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])