Sample Apps
Reference source code is published on GitHub, under github.com/sovereign-solutions.
| Sample | Repository |
|---|---|
| React Native mobile SDK example | ss-sdk-reactnative-example |
Get sample app from store (coming soon)
Files to copy into your app
| File | Purpose |
|---|---|
android/app/src/main/java/sovereignsolutions/TrackingSdkModule.kt | Kotlin native module exported as TrackingSdk |
android/app/src/main/java/sovereignsolutions/TrackingSdkPackage.kt | React package that registers the module |
src/TrackingSdk.ts | TypeScript wrapper used by application code |
src/screens/DutyTrackingScreen.tsx | Full duty-tracking UI flow (reference) |
Example
To run the example project, clone the repo, add your Maven credentials and BuildConfig values
(see Get Started), then run:
yarn install
yarn start
yarn android # in a second terminal
See also: Get Started.