Repository navigation
sheet-scope: promise-based, typed, lazily-mounted sheet manager built on gorhom v5 #2768
jdarshan5
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all! I kept hitting the same friction with
BottomSheetModalin larger apps: refs and present/dismiss calls scattered everywhere, every sheet mounted up front, no type safety, and sheets staying open after their screen is popped.So I built sheet-scope, a small layer on top of gorhom that fixes this:
awaita sheet and get the value fromsheet.close(value). Swipe-down or backdrop tap resolvesundefined.<SheetScope>unmounts.SheetModalaccepts anyBottomSheetModalprop.Repo: https://github.com/jdarshan5/sheet-scope
Docs: https://jdarshan5.github.io/sheet-scope/
Feedback on the API is very welcome. Thanks @gorhom for the great library!
All reactions