Get Started
NPM Configuration
Each Page is shipped in Tight’s React Native Component Library, which can be installed as follows:<Tight> component.
MileageScreen.tsx
<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 addreact-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 yourPodfile:
Podfile
Info.plist Configuration
In addition to installing the package with CocoaPods, you must also add the following to your app’sInfo.plist file:
- The provided Tight API client id
Info.plist
- A Google Maps API key
Info.plist
- 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 yoursettings.gradle.kts file:
settings.gradle.kts
ReactApplication:
MainApplication.kt
Resource Configuration
In addition to the configuration above, you must also add the following to your app’s resource files:- The provided Tight API client id in
res/values/strings.xml
strings.xml
- A Google Maps API key in
res/values/strings.xml
strings.xml