Skip to main content

Get Started

NPM Configuration

Each Page is shipped in Tight’s React Native Component Library, which can be installed as follows:
Once imported, you’ll need to ensure that every Embeddable UI component is rendered in a React Tree wrapped with a <Tight> component.
MileageScreen.tsx
Tight recommends adding a single <Tight> component towards the top of your application tree for maintainability. The <Tight> component’s environment property can be "PRODUCTION" or "SANDBOX", depending on the environment you’d like to target. You can obtain an applicable accessToken via the Tight Authentication Endpoint. In addition to installing the Tight React Native Component Library, you must add the following to your package.json
package.json

Babel Configuration

You must also add react-native-reanimated/plugin as the last plugin in your babel.config.js
babel.config.js

iOS Configuration

The Tight SDK supports a minimum iOS deployment version of iOS 17.0. Your app must target an iOS version greater than or equal to this version in order to use the Tight SDK.

Podfile Configuration

Add the following dependencies to your Podfile:
Podfile

Info.plist Configuration

In addition to installing the package with CocoaPods, you must also add the following to your app’s Info.plist file:
  1. The provided Tight API client id
Info.plist
  1. A Google Maps API key
Info.plist
  1. The following permission declarations, so that your app can request the necessary permissions from the user when they turn on mileage tracking, while complying with Apple’s guidelines:
Info.plist

Android Configuration

The Tight SDK supports a minimum Android SDK version of 28. Your app must target an Android SDK version greater than or equal to this version in order to use the Tight SDK.

Gradle Configuration

Add the following to your settings.gradle.kts file:
settings.gradle.kts
Then, add the following to your ReactApplication:
MainApplication.kt

Resource Configuration

In addition to the configuration above, you must also add the following to your app’s resource files:
  1. The provided Tight API client id in res/values/strings.xml
strings.xml
  1. A Google Maps API key in res/values/strings.xml
strings.xml