Skip to content

Conversation

@t0maboro
Copy link
Contributor

@t0maboro t0maboro commented Oct 23, 2025

Description

Update logic to enable the use of the SAV component to define the available space within a screen with presentation: formSheet on Android. From now on, the size of the formSheet is constrained by the maximum detent, and the content size equals the formSheet size minus insets coming from systemBars or ime, depending on the test case.

To maintain backward compatibility, a prop has been added to allow disabling SAV for a specific Screen.

Changes

  • Updated the logic for consuming insets in the SheetDelegate
  • Updated the definition of SheetBehavior for 3 detents - constraining the size with maxHeight
  • Updated the logic for wrapping the content with SAV, including it by default for android formSheets
  • Added a new example for testing.

Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

Before

before.mov

After

after.mov

Test code and steps to reproduce

Added Test3336 for testing.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants