ScrollTextView
FaceAISDK · React Native
Offline enrollment · 1:1 verification · Liveness detection · Feature management
English · 简体中文
Quick start · Integration & API · Demo source
npm SDK 1.9.0
Version 1.9.0 of @faceaisdk/react-native-face-sdk
updates the Android SDK to 2026.11.30 and iOS Core to 2026.12.02.
The demo on main pins SDK 1.9.0 and React Native 0.84.0.
Physical devices required: iOS 15.5+ or Android API 24+. Simulators are not supported.
Install dependencies
npm ci
npm run doctor
doctor checks dependency versions and the local toolchain. To check one platform,
use npm run doctor -- --android or npm run doctor -- --ios.
Android
Connect and unlock the phone, enable USB debugging, and accept the computer's authorization prompt.
# Terminal 1 — keep Metro running on port 8765
npm start
# Terminal 2 — install and run on the device
npm run android
The 1.9.0 arm64 Release build was tested on a Xiaomi 25098PN5AC using NDK 27.0.12077973. The app launched, opened the feature import form, and returned to the home screen.
iOS
cd ios && pod install --deployment && cd ..
Open ios/FaceAISDK_RN.xcworkspace, select your own Development Team,
and connect an unlocked iPhone.
npm run ios
React Native 0.84 requires Xcode 16.1 or later. The 1.9.0 iOS plugin passed arm64 Debug and Release compilation. Full app installation and face flows on iPhone are pending verification.
The shared scheme runs Release by default, with JavaScript bundled.
For Debug, start Metro with npm start, then use npm run ios -- --mode Debug.
iOS 16 and earlier
Use the legacy installer:
npm run ios:legacy
It installs Release; tap the app icon to launch. The build log is saved to
ios/build/ios-legacy.log.
Try the demo
Enroll with the camera and confirm saving, then query or verify demo-user. For feature or image imports, paste your data on the phone or use the last camera enrollment if it returned the required data. Successful imports overwrite this demo ID. Deleting the record also clears the in-memory enrollment sample.
Environment & versions
Node.js 22.11+ is required. Install Android components in SDK Manager and
configure ANDROID_HOME or android/local.properties.
View the reference toolchain and pinned dependencies
| Component | Version |
|---|---|
| Node.js / npm | 26.0.0 / 11.12.1 |
| React Native / CLI | 0.84.0 / 20.2.0 |
| Xcode / Swift / CocoaPods | 26.6 (17F113) / 6.3.3 / 1.16.2 |
| JDK | 17 |
| Android SDK / Build Tools | 34 / 35.0.0 |
| Android NDK / CMake | 28.1.13356709 / 3.22.1 |
| Gradle wrapper | 8.14.3 (included in the project) |
| Native SDK — Android | 2026.11.30 |
| Native SDK — iOS Core | 2026.12.02 |
The npm plugin pins the iOS Core version in its podspec. After upgrading the
plugin, run pod install in ios/ and commit both lockfiles.
Troubleshooting
| Symptom | What to check |
|---|---|
| SDK unavailable | Install dependencies and Pods, then rebuild the native app. |
| Version conflict | Run npm run doctor; restore matching lockfiles before reinstalling. |
| No enrolled feature | Enroll a face and confirm saving before verification. |
| Debug page does not load | Check Metro and device access to port 8765. |
| iOS installation fails | Run from Xcode; use ios:legacy for iOS 16 and earlier. |
