React Native example project using MyFiziq React Native plugin.
This guide assumes the React Native is installed and configured.
- Install the MyFiziq plugin.
npm install https://github.com/MyFiziqApp/reactnative-plugin-myfiziq.git
npm install
- Link the plugin to the project (this downloads and links in external libraries):
react-native link react-native-my-fiziq-sdk
- 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");
- Test that the project builds and runs (assuming iOS development):
react-native run-ios
- Update the project's
Info.plist
with an appropriate NSCameraUsageDescription string. For example, see: https://useyourloaf.com/blog/privacy-settings-in-ios-10/
MyFiziq iOS Dev, dev@myfiziq.com