Skip to content

[Bug]: enableDynamicSizing does not work with footerComponent and content with a smaller height than the footer #1996

@Brma1048

Description

@Brma1048

Version

v5

Reanimated Version

v3

Gesture Handler Version

v2

Platforms

iOS, Android

What happened?

The dynamic sizing does not work correctly when the content is smaller than the footer component. The content is behind the footerComponent and gets not bumped up with enableFooterMarginAdjustment from the BottomSheetScrollView.
When i add a minHeight to my content thats bigger than the height of the footer it works, but when not the content is behind the sticky footer.

Reproduction steps

  • Add a BottomSheetModal
  • Set enableDynamicSizing to true
  • Add a footerComponent with BottomSheetFooter
  • Add BottomSheetScrollView as child with enableFooterMarginAdjustment
  • Add some Text as child of the BottomSheetScrollView (needs to be smaller than the footerComponent)

Reproduction sample

https://snack.expo.dev/TlvSuYD5PjmqJbeTNPJq2

Relevant log output

No response

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