Examples

Note that some event timeline features are in Early Access, specifically the ones related to venue-type determination.

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-timeline

Submit 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