Skip to content

Comments

feat: Add support for managing sheet detents with imperative API#3574

Open
Crysp wants to merge 1 commit intosoftware-mansion:mainfrom
Crysp:sheet-ref
Open

feat: Add support for managing sheet detents with imperative API#3574
Crysp wants to merge 1 commit intosoftware-mansion:mainfrom
Crysp:sheet-ref

Conversation

@Crysp
Copy link

@Crysp Crysp commented Jan 26, 2026

Introduced a sheetRef prop and associated commands for controlling sheet detents on formSheet presentations. This includes native methods and type definitions to set the detent index programmatically, improving customization and flexibility.

Description

This feature allows to control active detent of opened formSheet. Sometimes it is really useful to set detent programmatically

Changes

  • Screens handles UI commands via react reference (like SearchBar)

Demonstration

iOS Android
ios.mov
android.mp4

Checklist

  • Included code example that can be used to test this change.
  • Updated / created local changelog entries in relevant test files.
  • For visual changes, included screenshots / GIFs / recordings documenting the change.
  • For API changes, updated relevant public types.
  • Ensured that CI passes

Introduced a `sheetRef` prop and associated commands for controlling sheet detents on `formSheet` presentations. This includes native methods and type definitions to set the detent index programmatically, improving customization and flexibility.
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.

1 participant