Usage
Learn how to integrate and use Reclaim Protocol's InApp SDK in your React Native Expo app, from initialization to handling verification requests and responses.
Prerequisites
Before implementing the Reclaim Protocol InApp SDK in your React Native Expo application, ensure you have:
- Installed the Reclaim Protocol InApp SDK (detailed instructions in the Installation Guide)
- Obtained your credentials from the Reclaim Developer Portal:
- Application ID
- Application Secret
- Provider ID
Implementation Guide
1. Import Required Dependencies
Start by importing the necessary React Native, Expo, and Reclaim Protocol InApp SDK components:
2. SDK Initialization
Initialize the ReclaimVerification class to create an instance:
Replace the placeholder credentials with your actual values from the Reclaim Developer Portal.
3. Start Verification Flow
Start the verification flow by providing the app id, secret and provider id:
4. Exception Handling
Handle verification exceptions using the ReclaimVerificationException:
5. React Native Expo Component Implementation
The following component demonstrates a complete integration of the Reclaim Protocol InApp SDK:
Advanced Usage
Overriding SDK Config
You can customize the SDK behavior by overriding default configurations:
Available Functions
You can check out available functions and advanced options in the Advance Options guide.