See the gestures behind app behavior
Preserve React Native touch input with session evidence so you can connect user actions with what happened on screen.
Captured gestures help you follow what the user did before an issue appeared. React Native records touch input through the native iOS and Android capture paths and configures both through the same bridge options.
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.
Because capture uses the native SDKs, Apple Pencil and Android stylus/eraser events also retain available pressure or force, angles, hover, and finer move samples. The values depend on the device; React Native does not need a separate JavaScript pen listener to include them in session replay.