Skip to content

Commit 297e0cd

Browse files
committed
Fix viewRef passing
1 parent 194739f commit 297e0cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native-gesture-handler/src/v3/detectors/VirtualDetector/VirtualDetector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export function VirtualDetector<THandlerData, TConfig>(
5858
methods: props.gesture.detectorCallbacks as DetectorCallbacks<unknown>,
5959
forReanimated: !!props.gesture.config.shouldUseReanimatedDetector,
6060
forAnimated: !!props.gesture.config.dispatchesAnimatedEvents,
61-
// TODO: why do we need this?
62-
viewRef: Platform.OS === 'web' ? viewRef.current : undefined,
61+
// used by HostGestureDetector on web
62+
viewRef: Platform.OS === 'web' ? viewRef : undefined,
6363
};
6464

6565
register(virtualChild);

0 commit comments

Comments
 (0)