Examples

circle-info

Note that some event timeline features are in Early Accessarrow-up-right, 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

Import 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