Touch Input
Capture React Native app touch input through the native iOS and Android touch capture paths.
React Native touch capture is configured through the same bridge options on both platforms.
await Ansight.initializeAndActivate({
touchCapture: {
captureMoveEvents: true,
captureCancelEvents: true,
moveCaptureDistanceThreshold: 8,
moveCaptureFramesPerSecond: 20,
},
});
Set touchCapture: false to disable capture at startup.
await Ansight.initializeAndActivate({
touchCapture: false,
});
Runtime Toggle
await Ansight.enableTouchCapture();
await Ansight.disableTouchCapture();
Touch records can include coordinates, normalized coordinates, pointer metadata, action, and capture time. Keep touch capture scoped to approved local development or QA workflows.