# Examples

{% hint style="info" %}
Note that some event timeline features are in [Early Access](https://github.com/sentiance/v4-docs/blob/main/important-topics/sdk/api-reference/react-native/event-timeline/broken-reference/README.md), specifically the ones related to venue-type determination.
{% endhint %}

### Install the module

Run the following command to install the module (make sure to install the **core** module beforehand):

```bash
npm i @sentiance-react-native/event-timeline
```

#### Submit occupant role feedback

<pre class="language-typescript"><code class="lang-typescript">import { submitOccupantRoleFeedback } from "@sentiance-react-native/event-timeline";
<strong>let result = await submitOccupantRoleFeedback("some_transport_id", "DRIVER");
</strong></code></pre>

#### Submit vehicle crash detection feedback

{% code fullWidth="false" %}

```typescript
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);
```

{% endcode %}
