Get started
Installation
// use npm
npm install --save @ihealth/ihealthlibrary-react-native
// use yarn
yarn add @ihealth/ihealthlibrary-react-native
Usage
Authentication
Download license file
- Sign up iHealth developer webside. Please sign up here
- Press "Add New App" button, fill in your information of your app. We will get email and active the license for your app.
- Download license file, as shown below.
Integrate license file
For iOS
As shown below, add your license file to your iOS project.
For Android
As show below, add your license file to your asserts folder.
Using license file
import { iHealthDeviceManagerModule } from '@ihealth/ihealthlibrary-react-native';
// your license file
const filename = 'license.pem';
iHealthDeviceManagerModule.sdkAuthWithLicense(filename);