Skip to content

useKeyboardHandler height onMove is not updated when switching to Emoji on iOS #600

Closed
@kimak

Description

@kimak

Describe the bug
When switching the Keyboard in Emoji mode the height useKeyboardHandler onMove event is not updated.

Code snippet

  useKeyboardHandler(
    {
      onMove: (event) => {
        'worklet'
        height.value = Math.max(event.height, 0)
      },
    },
    []
  )

Repo for reproducing
Here a simple snack example https://snack.expo.dev/@kimak/keyboard-emoji
Let me know if you need a reproducible repo.

To Reproduce
Steps to reproduce the behavior:

  1. Open the keyboard on iOS input
  2. Switch the keyboard in emoji
  3. The height is not updated

Expected behavior
When switching to emoji the height of the keyboard should update

Screenshots:
Working example
Screenshot 2024-09-26 at 23 17 58

Issue
Screenshot 2024-09-26 at 23 18 29

Smartphone (please complete the following information):

  • Device: iPhone SE
  • OS: iOS 17
  • RN version: 0.72
  • JS engine: Hermes
  • Library version: 1.3.4

Metadata

Metadata

Assignees

Labels

questionYou wanted to clarify something about the usage of the library or have a question about something🍎 iOSiOS specific

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions