Appearance
SDK Integration
Once you receive the Binah_ReactNative_SDK_5.0.1.tgz
file, you are ready to add the React Native SDK to your application.
Follow the steps below to integrate the SDK into your application.
1. Add the Binah AI package to your Project
1.1. Copy the Binah_ReactNative_SDK_5.0.1.tgz
file into the root folder of your project.
1.2. Add: binah-react-native-sdk
: ./Binah_ReactNative_SDK_5.0.1.tgz
to the package.json
file, under dependencies
section:
"dependencies": {
"binah-react-native-sdk": "./Binah_ReactNative_SDK_5.0.1.tgz"
},
2. Android Integration with the SDK
2.1. In android/app/build.gradle
modify minSdkVersion to 27.
2.2. In android/settings.grade
add the following line:
include ':binah-react-native-sdk:binah-sdk'
2.3. In android/app/src/main/AndroidManifest.xml
add the following:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera" android:required="true"/>
<uses-feature android:name="android.hardware.camera.front" android:required="true"/>
3. iOS Integration with the SDK
- Add the following line to the project
Podfile
:
pod 'binah-react-native-sdk', :path => '../node_modules/binah-react-native-sdk'
- Grant the application camera permission in
info.plist
:
<key>NSCameraUsageDescription</key>
<string>Used for vital signs monitoring</string>