Skip to content

Keyboard dismisses after sending each message in GiftedChat composer (v3.2.3)Β #2708

@gdalkesh

Description

@gdalkesh

Description

I am facing an issue with the TextInput (composer) behavior in react-native-gifted-chat after upgrading to a newer version.

Library Version

  • react-native-gifted-chat: ^3.2.3

Issue

When typing and sending a message using the composer:

  • The keyboard closes automatically after every message is sent
  • The user has to tap the input again to reopen the keyboard\
  • Spacing issue between the keyboard and composer while hardware button is visible on android

Observed Behavior

  • After sending a message, the keyboard dismisses automatically
  • This happens every time a message is sent
  • This behavior interrupts continuous typing or sending multiple messages

Expected Behavior

The keyboard should remain open after sending a message, and should only close when:

  • The user manually presses the back button, or
  • The user taps outside the TextInput

Regression

  • This behavior was working correctly in previous versions of react-native-gifted-chat
  • The issue started appearing after upgrading to version ^3.2.3

Android Navigation-Specific Behavior

  • When the keyboard is opened by tapping on the TextInput:

    • It works correctly on Android devices using gesture navigation
    • On Android devices using button navigation, an extra empty space appears between the keyboard and the TextInput (composer)
  • This extra spacing causes a noticeable layout gap and affects the overall chat UI alignment

Additional Notes

  • No custom keyboard or safe-area handling logic has been added on our side
  • The issue is reproducible only on Android with button-based navigation

Thanks for looking into this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions