@react-native-async-storage/async-storageis used, but you can use any persistent storage system.
RNFibriCheckViewexported from the
@fibricheck/react-native-camera-sdkpackage to perform a measurement and hook up
sdk.postMeasurementto post the data returned from the camera to the backend in the
authenticationfunction, the second parameter should be a callback function (this can also be an arrow function). This function will be called when legal documents have been updated in the FibriCheck cloud and the end-user needs to reapprove these. Example showing how to hook changes to legal documents change with your application and calling the
giveConsentfunction with the document after the user has approved these.
sdk.getMeasurementfunction to get a single measurement based on a id. Only measurements for the currently authenticated user can be requested.
sdk.getMeasurementswill return a paginated result with all measurements for the currently authenticated user. You can find the measurements under the
dataproperty. You can also use the
previousfunctions present on the result to navigate through the user's measurents.
measurementIdand will handle creation / fetching of the report. This function works great in combination with