Expo SDK
Install and use the Notus Expo SDK (React Native)
Install
pnpm add @notus-api/expo-sdk react-native-webview
Usage
import { Liveness } from '@notus-api/expo-sdk'
export default function KycLiveness() {
return <Liveness sessionId="<SESSION_ID>" />
}
Events
<Liveness
sessionId="<SESSION_ID>"
onSuccess={() => console.log('KYC liveness completed')}
onError={(e) => console.error('KYC liveness error', e)}
/>
Troubleshooting
- If the camera permission prompt doesn’t appear, verify that your simulator/emulator or device has a camera available and that your app has the necessary camera permissions.
Example project
See a complete example app here: notus-api-examples/kyc-react-native