Skip to content

[Bug]: Bottom Sheet does not fully open with dynamic content since v5.2.0 #2431

@wfern

Description

@wfern

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS

What happened?

Since version 5.2.0, or specifically after commit 5de7bd3, the bottom sheet does not fully expand when its content is dynamic (e.g., depends on a state variable).

It looks like the bottom sheet is being displayed before the content height is fully calculated. As a result, the sheet opens partially by default.

If we drag the sheet manually to the top position, it reveals the full content correctly.

This behavior was working fine in previous versions (before the above commit). I test all commits included in the 5.2.0 and this one 5de7bd3 is the one that bring the problem.

Reproduction steps

  1. Use a bottom sheet with dynamic content (e.g., conditional rendering or state-dependent list).
  2. Open the sheet programmatically to its highest snap point (expand).
  3. Observe that it does not fully open unless manually dragged or with static content.

You can disable the condition to render the content in the snack and see that it fully opens

Reproduction sample

https://snack.expo.dev/@wfern/gorhom-bottom-sheet-dont-fully-open

Images

Previous and expected result Current (5.2.0) result
Image Image

Relevant log output

No log necessary

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv5

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions