React Native

This document explains how to integrate the Orba One authentication flow into your React Native application.

1. Installation

npm install @orbaone/react-native-orba-one
# OR
yarn add @orbaone/react-native-orba-one

2. Linking

Linking is automatic, however, you still need to perform a few steps for iOS.

iOS

The Orba One SDK requires that the following permissions be added to the application's info.plist file:

<key>NSCameraUsageDescription</key>
<string>Required for Facial and Document capture.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Required for Audio capture.</string>
  • Ensure that use_frameworks! is added to your app target in your Podfile.

  • Run pod install to retrieve the sdk.

Android

No additional setup is necessary.

3. Usage

4. Starting the Verification Flow

5. Adding Customizations

6. Handling Verifications

Troubleshooting

When installing or using @orbaone/react-native-orba-one you may encounter the following problems:

[iOS] - If you are using @react-native-firebase in your project, along with use_frameworks!, you may encounter an error with RNFirebase. To avoid this, add $RNFirebaseAsStaticFramework = true at the top of your Podfile.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Last updated

Was this helpful?