Skip to content

Commit c7e4bf9

Browse files
fix: pass gestureRef to PanGestureHandlerNative (facebook#8394)
In the current implementation the ref is unused, resulting in a constant `current: {null}` on the context.
1 parent 7024d4b commit c7e4bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/stack/src/views/GestureHandler.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function PanGestureHandler(props: PanGestureHandlerProperties) {
1010

1111
return (
1212
<GestureHandlerRefContext.Provider value={gestureRef}>
13-
<PanGestureHandlerNative {...props} />
13+
<PanGestureHandlerNative {...props} ref={gestureRef} />
1414
</GestureHandlerRefContext.Provider>
1515
);
1616
}

0 commit comments

Comments
 (0)