First start by adding ClaimR's React Native client as a dependency to your React Native project. If you're using NPM, then run:
If you're using Yarn, run:
Next, create a
ClaimrClient instance. For this you need your own API key, which you can get at the ClaimR Dashboard.
To circumvent hard-coding the API key, we recommend storing them outside your code-base, for example using react-native-config or other similar tools.
Verify Location Hook
The last step is to start using the
In the background this hook will collect GNSS data.
Once enough data has been collected, the
submit function will be populated, which when invoked will send recent GNSS data to the ClaimR API to verify the current location.
After the location is verified, the results will be available in
claim and also encoded as a JWT in