Skip to content

Commit 19a8e19

Browse files
committed
fix(bottom-sheet-native): update worklet-specific callback
1 parent 7a1dcaf commit 19a8e19

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/pluggableWidgets/bottom-sheet-native/src/components/ExpandingDrawer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export const ExpandingDrawer = (props: ExpandingDrawerProps): ReactElement => {
157157

158158
const onChange = useCallback(
159159
(index: number) => {
160+
"worklet";
160161
// Determine if the drawer is opening or closing based on index changes
161162
const hasOpened = lastIndexRef === -1 && index === collapsedIndex; // Initial open to collapsed
162163
const hasClosed = index === -1; // Fully closed

0 commit comments

Comments
 (0)