Commit c82d5b8
committed
refactor ref/gestures
remove preserveScrollMomentum + scrollBuffer + lockableScrollableContentOffsetY props
we're using `preserveScrollMomentum` in the media picker, but i'm removing it because i feel the behavior is actually detrimental to the UX, and to simplify the refactor to scrollEnabled in the next commit.
`lockableScrollableContentOffsetY` is removed since it won't be necessary after the scrollEnabled refactor
`scrollBuffer` was no longer used.
removed custom gesture/scroll handling hooks
after refactoring to use scrollEnabled, we can add other props to add custom behaviors if needed.
refactored scroll/pan gesture interaction based on software-mansion/react-native-gesture-handler#420 (comment)
and approach from rngh example
https://github.com/software-mansion/react-native-gesture-handler/blob/main/example/src/new_api/bottom_sheet/index.tsx#L871 parent 8093e96 commit c82d5b8
File tree
30 files changed
+472
-1633
lines changed- example/app/src/screens
- advanced/customGestureHandling
- src
- components
- bottomSheetDraggableView
- bottomSheetGestureHandlersProvider
- bottomSheetHandleContainer
- bottomSheetRefreshControl
- bottomSheetScrollable
- bottomSheet
- contexts
- hooks
30 files changed
+472
-1633
lines changedLines changed: 0 additions & 115 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
0 commit comments