Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
783 stars 74 forks source link

Hiding header at Full snap. #92

Closed AbBiz21 closed 1 year ago

AbBiz21 commented 1 year ago

I used 3 snap points i.e [0.925, 0.53, 0.19], the starting snap point is 0.19.

in the modal I used all the elements like this...

I was trying to hide the header at full snap. How do I do that? I tried to get the snapIndex and use it but it is not giving the right index at each snap point.

Temzasse commented 1 year ago

Thanks for reporting this 🙏🏻 This should be fixed in version 1.6.1 🙂