Skip to content

Commit 441a4c7

Browse files
author
Andrzej Antoni Kwaśniewski
committed
remove redundant function
1 parent 9831b5d commit 441a4c7

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • apps/common-app/src/new_api/showcase/bottom_sheet

apps/common-app/src/new_api/showcase/bottom_sheet/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ function Example() {
3535
const scrollOffset = useSharedValue(0);
3636
const bottomSheetTranslateY = useSharedValue(CLOSED_SNAP_POINT);
3737

38-
const onHandlerEndOnJS = (point: number) => {
39-
setSnapPoint(point);
40-
};
4138
const onHandlerDeactivate = (e: PanGestureEvent) => {
4239
const dragToss = 0.01;
4340
const endOffsetY =
@@ -67,7 +64,7 @@ function Example() {
6764
bottomSheetTranslateY.value = withSpring(destSnapPoint, {
6865
mass: 0.5,
6966
});
70-
runOnJS(onHandlerEndOnJS)(destSnapPoint);
67+
runOnJS(setSnapPoint)(destSnapPoint);
7168
};
7269
const panGesture = usePanGesture({
7370
onUpdate: (e) => {

0 commit comments

Comments
 (0)