Examples
Install the module
Run the following command to install the module (make sure to install the core module beforehand):
npm i @sentiance-react-native/event-timelineSubmit occupant role feedback
import { submitOccupantRoleFeedback } from "@sentiance-react-native/event-timeline";
let result = await submitOccupantRoleFeedback("some_transport_id", "DRIVER");Submit vehicle crash detection feedback
import {
submitVehicleCrashDetectionFeedback,
type VehicleCrashDetectionFeedback,
type VehicleCrashDetectionFeedbackResult
} from "@sentiance-react-native/event-timeline";
const feedback: VehicleCrashDetectionFeedback = {
type: "CRASH",
crashTimeEpoch: 1761048047000,
wasCrashDetectedBySentiance: true,
crashLocation: {
latitude: 5.66,
longitude: -2.45
}
};
const result: VehicleCrashDetectionFeedbackResult =
await submitVehicleCrashDetectionFeedback(feedback);Last updated