Commit 2ec2604
committed
refactor scrollable ref & native gestures using useAnimatedRef and Reanimated.ScrollView + createNativeWrapper
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 using animated scrollEnabled prop based on software-mansion/react-native-gesture-handler#420 (comment)1 parent 8093e96 commit 2ec2604
File tree
31 files changed
+317
-1560
lines changed- example/app/src/screens
- advanced/customGestureHandling
- src
- components
- bottomSheetDraggableView
- bottomSheetGestureHandlersProvider
- bottomSheetHandleContainer
- bottomSheetRefreshControl
- bottomSheetScrollable
- bottomSheet
- contexts
- hooks
31 files changed
+317
-1560
lines changedLines changed: 0 additions & 115 deletions
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 0 additions & 209 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 115 | | |
123 | 116 | | |
124 | 117 | | |
0 commit comments