Skip to content

Conversation

@obi-owner
Copy link

Summary

  • Refactors the native dismiss API to dismiss the current sheet and all child sheets presented on top of it when dismiss() is called
  • Adds a dismissChildren() method to only dismiss the children presented on top of the current sheet

This must be merged before #444

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

Screenshots / Videos

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)
  • I added a changelog entry (if needed)

@vercel
Copy link

vercel bot commented Jan 20, 2026

@obi-owner is attempting to deploy a commit to the Jovanni's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Owner

@lodev09 lodev09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far. Just need to retain the dismiss name on the native instead of the old dismissAll. This should make methods consistent in the native too. Just add code comment so it's clear.

Comment on lines +391 to +401
dismiss: async () => {
const sheetsAbove = bottomSheetContext?.getSheetsAbove(sheetName) ?? [];

// Dismiss all sheets above sequentially since gorhom/bottom-sheet doesn't support cascade dismiss
for (const sheet of sheetsAbove) {
await bottomSheetContext?.dismissDirect(sheet);
}

// Then dismiss this sheet
await dismissInternal();
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try calling dismissChildren here first before itself?

@lodev09
Copy link
Owner

lodev09 commented Jan 20, 2026

Also, I think dismissStack is more proper, let's go with that 😄

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