Updating sheet position after snapPoints change
See original GitHub issueIt doesn’t appear that the position of the sheet changes if the snapPoints
props are changed. Is there any way to make this work? Or is that not supported?
It would be nice to have the positions be dynamic based on content heights, where the snapPoints
are defined from state values set in onLayout
callbacks of the sheet elements.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:5
Top Results From Across the Web
How to use animatedPosition prop in react-native-bottom-sheet
animatedPosition return shared-values of Reanimated which can be used to animate/interpolate other views in the screen.
Read more >CSS Scroll Snap Points Module Level 1 - W3C
This module contains features to control panning and scrolling behavior with "snap positions". CSS is a language for describing the rendering of ...
Read more >CSS Scroll Snap Points - CSS: Cascading Style Sheets | MDN
These determine the specific positions that a container's scrollport may end at after a scrolling operation has completed.
Read more >Tentative Snap Points - Bentley - Product Documentation
A tentative snap point is a form of graphic input that is used to: Preview the location of the next data point. Accepting...
Read more >react-spring-bottom-sheet - npm package - Snyk
Learn more about react-spring-bottom-sheet: package health score, ... content have changed its height in such a way that the valid snap points have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As a workaround you can set the key to a value changes with the snapPoints. This will force a re-render.
For example:
@osdnk is there a recommended way to do this? Seems like dynamic
snapPoint
support would be an awesome addition to this