Integration

The React Native libraries for DriveKit SDK are open source and available on GitHub: https://github.com/DriveQuantPublic/react-native-drivekitarrow-up-right

If you want to get a sample code to install DriveKit in your React Native application, you can test our demo applicationarrow-up-right.

If you prefer to integrate the SDK directly into your application, please follow the next steps.

Core

First you have to install the Core component which allows you to initialise the DriveKit SDK, to configure your API key and to declare a user. The Core component is mandatory.

React Native librairies are available via NPM. First, install the library:

npm install @react-native-drivekit/core

and install iOS pods:

cd ios && pod install

The step by step procedure to initialise the SDK, set your API Key and create a user is described in the Core component READMEarrow-up-right.

Trip Analysis

After installing the Core component, you need to install the Trip Analysis component which allows you to record trips and configure the recording modes.

First, install the library:

npm install @react-native-drivekit/trip-analysis

and install iOS pods:

cd ios && pod install

To initialise Trip Analysis and enable the autostart mode, follow the steps described in the Trip Analysis component READMEarrow-up-right.

Driver Data

The Driver Dataarrow-up-right module manages the driver trips display (list and details) and ensures the synchronisation of driver data.

First, install the library:

and install iOS pods:

To initialise Driver Data and get driver trips data, follow the steps described in the Driver Data component READMEarrow-up-right.

Trip Simulator

To verify the DriveKit Trip Analysis component integration into your app, it is recommended to perform tests in real conditions. Before carrying out driving tests, it may be useful to validate the implementation of the SDK in your application.

For this purpose, DriveQuant provides the Trip Simulatorarrow-up-right component based on recorded GPS data.

circle-exclamation

First, install the library:

and install iOS pods:

To start using the tool, follow the steps described in the Trip Simulator component READMEarrow-up-right.

Last updated

Was this helpful?