Skip to main content

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

  1. Sign up iHealth developer webside. Please sign up here
  2. Press "Add New App" button, fill in your information of your app. We will get email and active the license for your app.
  3. Download license file, as shown below. Download

Integrate license file

For iOS As shown below, add your license file to your iOS project. integrate ios

For Android As show below, add your license file to your asserts folder. integrate android

Using license file

import { iHealthDeviceManagerModule } from '@ihealth/ihealthlibrary-react-native';

// your license file
const filename = 'license.pem';
iHealthDeviceManagerModule.sdkAuthWithLicense(filename);