[Feature Request]: Add onWillPresent Callback #132
Replies: 2 comments
-
I actually thought about this before but it was not needed since you could just do it right before you present the sheet. // Do your thing here.
await sheetRef.current?.present() But I guess it does make sense since it has Moving this to Discussions. |
Beta Was this translation helpful? Give feedback.
-
I took a look at this and unfortunately it's very unreliable. There's no easy way to determine if the user is going to "dismiss" the sheet while dragging so we still going to end up with I'm open to suggestions though. Closing for now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What’s missing?
Right now, there’s only an
onPresent
callback, which fires after the sheet is fully presented. It’d be super useful to have anonWillPresent
callback that triggers when the animation starts.Why is this useful?
How could it work?
Something like this:
Beta Was this translation helpful? Give feedback.
All reactions