Skip to main content
Didit Raises $7.5M to Build the Infrastructure for Identity and Fraud
Didit
Back to blog
Blog · March 6, 2026

Seamless Liveness Detection in React Native with Didit SDK

Integrating robust liveness detection into React Native applications is crucial for preventing fraud and ensuring secure identity verification.

By DiditUpdated
liveness-detection-react-native-didit-sdk.png

Effortless IntegrationDidit's React Native SDK simplifies the integration of advanced liveness detection into your mobile applications, supporting both iOS and Android with a TypeScript API, including NFC passport reading.

Comprehensive Fraud PreventionLeverage Didit's Passive & Active Liveness detection to accurately identify and thwart spoofing attempts, ensuring only real users pass verification.

Customizable Risk AssessmentGain granular control over your verification process with configurable settings for low liveness scores, duplicate faces, and other potential risks, allowing for tailored security policies.

Developer-First & Modular SolutionDidit provides an AI-native, modular platform with a free core KYC tier, clean APIs, and an instant sandbox, empowering developers to build secure, scalable identity verification workflows without hidden fees.

The Growing Need for Advanced Liveness Detection in Mobile Apps

In today's digital-first world, mobile applications are at the forefront of user interaction, from banking and fintech to social media and e-commerce. With this convenience comes an increased risk of identity fraud. Bad actors are constantly developing sophisticated methods, including deepfakes and advanced spoofing techniques, to bypass traditional identity verification measures. This makes robust liveness detection not just a feature, but a critical necessity for any application handling sensitive user data or transactions.

Liveness detection ensures that the person performing the verification is a real, live human being, and not a static image, video, or 3D mask. For React Native developers, integrating such advanced security can often be complex, requiring deep knowledge of biometric technologies and platform-specific implementations. However, a modern, developer-friendly solution can significantly ease this burden, offering powerful protection without extensive overhead.

Integrating Didit's Liveness Detection with React Native SDK

Didit's React Native SDK stands out by providing a seamless, AI-native approach to liveness detection. Designed for React Native 0.76+ with New Architecture (TurboModules), Node.js 20+, and TypeScript 5+, it supports iOS 13.0+ (iOS 15+ for NFC) and Android API 23+.

Installation is straightforward:

For Expo users (recommended):

npx expo install @didit-protocol/sdk-react-native

Then, add the plugin to your app.json:

{
  "expo": {
    "plugins": ["@didit-protocol/sdk-react-native"]
  }
}

The config plugin automatically handles the necessary Maven repo (Android) and Podspec (iOS) configurations. Note that this SDK requires a development build and does not work in Expo Go.

For React Native CLI users:

npm install @didit-protocol/sdk-react-native

For iOS, add to your Podfile inside the target block:

pod 'DiditSDK', :podspec => 'https://raw.githubusercontent.com/didit-protocol/sdk-ios/main/DiditSDK.podspec'

Then run cd ios && bundle exec pod install. For Android, add to your settings.gradle:

maven { url "https://raw.githubusercontent.com/didit-protocol/sdk-android/main/repository" }

This streamlined integration allows developers to quickly implement Didit's robust Passive & Active Liveness detection, including advanced features like NFC Verification for ePassports and eIDs, directly into their React Native applications.

Understanding Liveness Detection Reports and Warnings

Didit's Liveness Detection goes beyond a simple pass/fail. After each verification attempt, developers receive a comprehensive JSON report providing deep insights into the security assessment. This report includes:

  • Liveness Status: Overall verification status (Approved, Declined, In Review) and a confidence score.
  • Method Details: Information on the liveness detection method used (e.g., ACTIVE_3D, FLASHING, PASSIVE).
  • Media References: Temporary URLs to captured images and videos for review.
  • Risk Assessment: Detailed warnings and potential security issues detected, such as face attacks, low liveness scores, or blocklist matches.
  • Age Estimation: A privacy-preserving age estimation in years for the target image, which is useful for age-restricted services.
  • Matches: Information on potential duplicate faces, including similarity percentage and user details, crucial for preventing duplicate accounts or identity theft.

Didit's system includes automated checks and configurable settings to manage various risks. For instance, conditions like NO_FACE_DETECTED, LIVENESS_FACE_ATTACK, or FACE_IN_BLOCKLIST will automatically result in a decline. However, for issues like a LOW_LIVENESS_SCORE, POSSIBLE_DUPLICATED_FACE, or LOW_FACE_QUALITY, applications can configure specific thresholds to either decline, approve, or flag sessions for manual review. This flexibility allows businesses to tailor their security posture to their specific risk appetite.

Enhancing User Experience and Security with AI-Native Liveness

Integrating liveness detection shouldn't compromise user experience. Didit's AI-native approach ensures that the verification process is as smooth and quick as possible while maintaining high accuracy in fraud prevention. By leveraging advanced machine learning models, Didit can detect subtle cues indicative of spoofing attempts, such as variations in texture, reflection, and movement, that are imperceptible to the human eye. This allows for a frictionless experience for legitimate users, minimizing false positives and reducing abandonment rates.

Furthermore, the optional NFC Verification feature within the React Native SDK adds an extra layer of security and trust. By allowing users to scan their ePassport or eID, applications can perform a cryptographic verification of the document's authenticity, linking the physical document to the digital identity with unparalleled confidence. This capability, combined with liveness detection, creates a formidable defense against even the most sophisticated identity fraud schemes.

How Didit Helps

Didit is the AI-native, developer-first identity platform that empowers businesses to integrate robust identity verification solutions seamlessly. Our modular architecture allows you to plug-and-play identity checks like Passive & Active Liveness, ID Verification, and NFC Verification directly into your React Native applications. We offer a Free Core KYC tier, ensuring that essential identity verification is accessible to businesses of all sizes. With no setup fees and a pay-per-successful-check model, Didit provides a cost-effective and scalable solution for fraud prevention. Our AI-native approach means continuous improvement and adaptation to new fraud vectors, while our developer-first philosophy provides clean APIs, comprehensive documentation, and an instant sandbox for rapid integration and testing. The customizable risk assessment and detailed liveness reports give you full control and insight into your verification processes, allowing you to fine-tune security to meet your specific needs.

Ready to Get Started?

Ready to see Didit in action? Get a free demo today.

Start verifying identities for free with Didit's free tier.

Infrastructure for identity and fraud.

One API for KYC, KYB, Transaction Monitoring, and Wallet Screening. Integrate in 5 minutes.

Ask an AI to summarise this page
Liveness Detection Integration with Didit React Native SDK.