-
-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow dynamic snap points #81
Conversation
@gorhom How to test it? Can't understand how to use this feature. Is it reflected in example App? |
Is dynamic snap point is what located at |
I have feeling that bottom-sheet handle is not synced with content, expecially on shaking. https://drive.google.com/file/d/1DZkq2LoF-uaRpzaga475wzysMVlj2MvI/view?usp=sharing |
hi @likern , thanks for tasting this pr
this is a known issue on Android, i will work on a fix later. |
@gorhom Thank you! I have two more questions. Will this version work for Reanimated V2? My reanimated version is And could you give more examples how to use bottom-sheet based on content? For example just show bottom-sheet with one snap point of content height? |
@likern this pr for
i will add one more example for dynamic snap point later 👍 |
@likern added dynamic snap point example ,, hope it helps 👍 |
@gorhom I think gestures are not interruptable. |
@likern i think that is an expected behaviour,, right. but also you could create an issue and we discuss it from there :) |
@gorhom this looks sick! one question. do you know of any way to make Modal snap points reactive? the use case is presenting modal confirmation dialogues that have dynamic height based on content. really awesome work on this library by the way 🔥 ! |
@stephenlaughton good point , I'll look into it |
Motivation
this pr will allow
snapPoints
to be more reactive to updates and improve snap points calculating position.Test