Examples
Install the module
npm i @sentiance-react-native/crash-detectionImport the module
import SentianceCrashDetection from "@sentiance-react-native/crash-detection";Vehicle Crash Event Detection
import {addVehicleCrashEventListener} from "@sentiance-react-native/crash-detection";
const subscription = addVehicleCrashEventListener(vehicleCrashEvent => {
// New vehicle crash event
});
// Don't forget to unsubscribe, typically in componentWillUnmount
subscription.remove();Invoke a dummy vehicle crash event
Check if crash detection is supported
Vehicle Crash Diagnostic Data
Last updated