We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9831b5d commit 441a4c7Copy full SHA for 441a4c7
1 file changed
apps/common-app/src/new_api/showcase/bottom_sheet/index.tsx
@@ -35,9 +35,6 @@ function Example() {
35
const scrollOffset = useSharedValue(0);
36
const bottomSheetTranslateY = useSharedValue(CLOSED_SNAP_POINT);
37
38
- const onHandlerEndOnJS = (point: number) => {
39
- setSnapPoint(point);
40
- };
41
const onHandlerDeactivate = (e: PanGestureEvent) => {
42
const dragToss = 0.01;
43
const endOffsetY =
@@ -67,7 +64,7 @@ function Example() {
67
64
bottomSheetTranslateY.value = withSpring(destSnapPoint, {
68
65
mass: 0.5,
69
66
});
70
- runOnJS(onHandlerEndOnJS)(destSnapPoint);
+ runOnJS(setSnapPoint)(destSnapPoint);
71
};
72
const panGesture = usePanGesture({
73
onUpdate: (e) => {
0 commit comments