Skip to content

Bug: UI shifts down when navigating from chat list (tab) to chat screen using react-native-gifted-chat #2707

@gdalkesh

Description

@gdalkesh

Description

I am facing a UI layout issue when navigating from a chat listing screen (bottom tab) to a chat messages screen that uses react-native-gifted-chat.

Libraries Used

  • react-native-gifted-chat: ^3.2.3
  • @react-navigation/bottom-tabs: ^7.4.2
  • @react-navigation/native: ^7.1.14
  • @react-navigation/native-stack: ^7.3.21

Issue

When navigating from the Chat List (Tab Screen) to the Chat Messages screen, the entire application UI shifts downward by a certain height.

Because of this:

  • The bottom tab bar becomes partially hidden
  • The overall UI appears cut off from the bottom
  • It feels like extra bottom spacing is applied unexpectedly

Observed Behavior

  • This issue occurs on devices using:

    • Button navigation
    • Gesture navigation
  • The issue is more noticeable on button navigation, where the UI shift is clearly visible

Expected Behavior

The UI should remain stable when navigating between screens, and the bottom tab bar should remain fully visible without any layout shift or cut-off.

Additional Notes

This issue only happens when navigating to the screen that renders react-native-gifted-chat. Other screens do not show this behavior.

Please let me know if any additional information, reproduction steps is needed.
Thanks for your support!

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