Skip to content

How to snap sheet custome while on event listeners #294

Answered by Shubham12399
Shubham12399 asked this question in Q&A
Discussion options

You must be logged in to vote

I got this answere by reading docs.
if (ref.current) { ref.current.snapTo(({ maxHeight }) => maxHeight * 0.65); }

setting maxHeight*0.65 it means 65 vh height

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Shubham12399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant