Handling Viewer Events
GestureViewer provides a way to subscribe to specific events from the viewer using the useGestureViewerEvent hook. This allows you to respond to viewer interactions such as zoom, rotation, and taps.
useGestureViewerEvent
Listen to events on a specific instance
You can listen to events on a specific instance by passing the instance ID as the first argument to the useGestureViewerEvent hook.
Note
The default id value is default.
API Reference
Tip
If you want to handle the tap event directly from a GestureViewer prop, you can use onSingleTap.
