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-timelineImport the module
import SentianceEventTimeline from "@sentiance-react-native/event-timeline";Start receiving trip location updates
const intervalInSeconds = 10;
const result = await SentianceEventTimeline.startReceivingTripLocationUpdates(
intervalInSeconds,
(tripLocation) => console.log(tripLocation),
);
if (result === "SUCCESS") {
console.log("Trip location updates started successfully");
}Stop receiving trip location updates
Last updated