@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
movementDetectionEnabledto false on for example a
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
sdk.getPeriodicReportsmethod will retrieve all your periodic reports.
triggerfield indicates for which period the report was made (7 days, 30 days or at the end of a prescription)
@babel/plugin-proposal-async-generator-functionsis required. This plugin is included in
sdk.getPeriodicReportPdfmethod will retrieve a pdf-version of the periodic report.
reportIdas a parameter.
sdk.activatePrescriptionmethod will link the prescription to the user and activate it. This method takes the prescription's
hashas a parameter.