/reactnative-plugin-myfiziq-example

Example React Native project that demonstrates the MyFiziq plugin

Primary LanguageJavaScriptApache License 2.0Apache-2.0

MyFiziq Logo

React Native example project using MyFiziq React Native plugin.

Installation

This guide assumes the React Native is installed and configured.

  1. Install the MyFiziq plugin.
npm install https://github.com/MyFiziqApp/reactnative-plugin-myfiziq.git
npm install
  1. Link the plugin to the project (this downloads and links in external libraries):
react-native link react-native-my-fiziq-sdk
  1. Update the MyFiziq setup paramters with the environment key, secret, and environment strings (as recieved from MyFiziq). See:
let result = await MyFiziq.mfzSdkSetup(
        "REPLACE ME WITH KEY", 
        "REPLACE ME WITH SECRET", 
        "REPLACE ME WITH ENVIRONMENT");
  1. Test that the project builds and runs (assuming iOS development):
react-native run-ios
  1. Update the project's Info.plist with an appropriate NSCameraUsageDescription string. For example, see: https://useyourloaf.com/blog/privacy-settings-in-ios-10/

Author

MyFiziq iOS Dev, dev@myfiziq.com