Skip to main content

Sample Apps

Reference source code is published on GitHub, under github.com/sovereign-solutions.

SampleRepository
React Native mobile SDK exampless-sdk-reactnative-example

Get sample app from store (coming soon)


Files to copy into your app​

FilePurpose
android/app/src/main/java/sovereignsolutions/TrackingSdkModule.ktKotlin native module exported as TrackingSdk
android/app/src/main/java/sovereignsolutions/TrackingSdkPackage.ktReact package that registers the module
src/TrackingSdk.tsTypeScript wrapper used by application code
src/screens/DutyTrackingScreen.tsxFull 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.