Skip to main content

Didit React Native SDK with Expo: Setup and Requirements 2026

The Didit React Native SDK needs RN 0.76+ on the New Architecture, the Expo config plugin and a development build; Expo Go will not load it. Full KYC is $0.33 and NFC adds $0.15.

Didit React Native SDK with Expo: Setup and Requirements 2026

Contents

In this guide

Jump to the part you need.

The Didit React Native SDK fits teams that ship identity verification inside an Expo app and need native camera, liveness and NFC instead of a WebView. It requires React Native 0.76 or later on the New Architecture, iOS 13.0 or later and Android API 24 or later, plus the Expo config plugin and a development build, because Expo Go cannot load the native module. A full KYC check costs $0.33 and NFC chip reading adds $0.15.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

Requirements at a glance

Didit React Native SDK, current release 4.15.4
RequirementValue
React Native0.76 or later, New Architecture
iOS13.0 or later. NFC reading needs iOS 15.0 or later
AndroidAPI 24 or later. NFC needs an NFC-enabled device
Package@didit-protocol/sdk-react-native, installed from npm or yarn
Install commandnpm install @didit-protocol/sdk-react-native
ExpoExpo config plugin plus a development build. Expo Go is not supported
NFCSupported. Chip reading needs iOS 15.0 or later, or an Android device with NFC enabled
API surfaceJavaScript API over the native iOS and Android SDKs
Price per checkFull KYC $0.33, NFC add-on $0.15, sandbox free on every plan

Start free in the sandbox at business.didit.me with no sales call, and read list prices on didit.me/pricing. For developers who want to connect Didit to an AI assistant, the MCP server is at didit.me/developers/mcp. The React Native SDK guide is on docs.didit.me.

What the React Native SDK wraps

The package provides a JavaScript API over the native iOS and Android SDKs, so the verification screen runs as native UI inside your app: document capture, passive or active liveness, face match and NFC chip reading. The native layer handles camera permission prompts, NFC reading and liveness capture, which is the reason to use it instead of a WebView or a browser redirect. React Native SDK 4.15.4 pins native SDK 4.15.4 and introduces no new JavaScript API.

The overview table uses the same contract for every platform: iOS and Android sit at 4.15.4, React Native requires RN 0.76 or later with the New Architecture and the iOS 13.0 and Android API 24 floors. NFC is available on both mobile platforms but not in browsers. For a browser integration, open the hosted session URL. The hosted browser flow skips NFC and continues with document and selfie verification.

A full walkthrough of the screens a person sees during a Didit KYC verification
A KYC walkthrough from our Academy: the screens a person sees during document and selfie verification.

Prerequisites

What you need before the first build
SideItemDetail
Didit planFree, Growth or ScaleThe Free plan gives $10 in monthly credit to the first organization created with an eligible work email for a company domain. Growth is $99 a month with $115 of credit and 4% off our prices; Scale is $299 a month with $350 of credit and 10% off. Sandbox testing is free and unlimited on every plan.
Didit clientx-api-keyCreated in the Business Console. It authorizes calls to verification.didit.me and belongs on your server, never in the app bundle.
Didit clientworkflow_idA published workflow that lists the checks you want, for example OCR, LIVENESS, FACE_MATCH and NFC.
AppExpo project on RN 0.76+New Architecture enabled, iOS deployment target 13.0 or later, Android minSdk 24 or later.
AppDevelopment buildThe config plugin generates native code, so you need a development build, not Expo Go.
PermissionsCamera and NFCThe SDK requests camera access and runs liveness capture itself. NFC chip reading needs iOS 15.0 or later, or an Android device with NFC enabled.
ServerWebhook destination secretsecret_shared_key returned when you register the destination, used to verify X-Signature-V2.

We can ask for explicit biometric consent before the first face capture when the person lives in Illinois, Texas or Colorado. React Native 4.15.4 supports the consent step because it pins native 4.15.4. In Auto consent mode, user_state can trigger the prompt for those states. If consent was already collected, send biometric_consent with given_at and text_version. A native SDK below 4.10.0, or one that does not report its native version, runs the session as before and reports biometric_consent.status: "pending" with reason: "BIOMETRIC_CONSENT_UNSUPPORTED_SDK". The rules are on docs.didit.me/getting-started/biometric-consent.

Seven steps from an empty Expo app to a live check

  1. Check the baseline. Confirm react-native in package.json resolves to 0.76 or later, the New Architecture is on, the iOS deployment target is 13.0 or later and Android minSdk is 24 or later. React Native versions below 0.76 are unsupported.

  2. Install the package. Run the install from the project root.

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

    The same package name works with yarn. The current release is 4.15.4. React Native SDK 4.15.4 pins native SDK 4.15.4 and introduces no new JavaScript API.

  3. Add the Expo config plugin and rebuild a development build. Register @didit-protocol/sdk-react-native as a config plugin in your app config following the React Native SDK guide, then rebuild the development build. Expo Go does not include the module and the flow will fail at runtime. For NFC on iOS, use a device with NFC.

  4. Create or pick a workflow. In the Business Console open Workflows, choose New workflow, pick Verifying users, and start from a template. Add the NFC check alongside ID Verification if you want chip reading, then publish the workflow. NFC runs alongside ID verification: after the document photo, the SDK reads the MRZ to derive the chip keys, then the person taps the passport.

  5. Create a session on your server. This is the same call for KYC and KYB, and it returns session_id, url and session_token.

    curl -X POST https://verification.didit.me/v3/session/ -H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'

    Replace YOUR_API_KEY and YOUR_WORKFLOW_ID before running the command. Pass vendor_data as your own stable user id; it binds the session to that user and feeds duplicate detection across sessions. When your application has allowed domains configured, an HTTP or HTTPS callback must match an allowed origin or session creation returns 400. A custom URL scheme such as myapp:// is always accepted.

  6. Open the verification screen from React Native. The React Native SDK guide documents the exact import, method and input for launching the verification screen. Use that page as the source; the release notes confirm startVerification and startVerificationWithWorkflow exist, but they do not define what each accepts, so do not treat them as interchangeable. For a server-created session, create it as in step 5 and pass the documented input from the guide. On Android, React Native 4.15.3 fixed the launch behavior for both methods: if the app goes to the background, the call waits until the app is back in the foreground before opening the screen, and it always settles.

  7. Read the decision. Register a destination with POST /v3/webhook/destinations/ and subscribe to status.updated and data.updated. The request needs label and url, and the response returns secret_shared_key; store it on your server. For each delivery, capture the raw request body, check that X-Timestamp is within five minutes, compute HMAC-SHA256 over the sorted, Unicode-preserved canonical JSON with the destination secret, and compare it with X-Signature-V2 in constant time. X-Signature-V2 signs sorted, Unicode-preserved canonical JSON; X-Signature signs the exact raw bytes. As a fallback, call GET https://verification.didit.me/v3/session/{session_id}/decision/. Results arrive in plural arrays, so read nfc_verifications[], not a singular key.

Field and event mapping

Where each value travels between your app, the API and the decision
Field or eventWhere it appearsWhat to do with it
workflow_idPOST /v3/session/ requestDecides which checks run and therefore what the React Native screen shows
vendor_dataSession, webhook envelopeMatch the decision to your own user record
callbackPOST /v3/session/ requestFor the hosted flow we append verificationSessionId and status to the callback, or use a deep link scheme for the app
metadataCreate response, webhooksEchoed back, never shown to the person
expected_detailsPOST /v3/session/ requestMismatches surface as decision warnings
sandbox_scenarioSandbox applications onlyForces a known outcome such as a decline for testing
statusWebhook, decisionExact case-sensitive strings. A session can move to In Review for manual review
id_verifications[], liveness_checks[], face_matches[]Decision objectPer-check results, one item per instance in the workflow
nfc_verifications[]Decision objectChip result and warnings such as NFC_NOT_READ or NFC_DATA_DOES_NOT_MATCH_OCR
event_idWebhook envelopeDe-duplicate deliveries

Statuses come from one enum, documented at docs.didit.me/integration/verification-statuses. A session starts at Not Started, moves to In Progress when the person opens the flow, and can end in Approved, Declined, In Review, Expired or Abandoned. In Review is a pending manual decision, not a final approval. Awaiting User is KYB only and waits on key people. Use strict string matching, because the values are case sensitive and contain spaces.

Check NFC on a real device

The SDK floor is iOS 13.0 or later. NFC chip reading needs iOS 15.0 or later, or an Android device with NFC enabled. Use a device with NFC. Run a sandbox session with NFC in the workflow. After the document photo, the SDK reads the MRZ and asks the person to tap the passport.

Confirm the result in nfc_verifications[]. If the array is empty, the device has no NFC chip or NFC is disabled, and the flow falls back to OCR plus face match. If the item status is Declined with NFC_NOT_READ or NFC_BAC_FAILED, the chip read did not complete; let the user retry and hold the phone in place. If the item status is Declined with NFC_DATA_DOES_NOT_MATCH_OCR, do not approve based on this result. Review the mismatch under your verification policy.

Test in the sandbox: expected success and error cases

Build with a sandbox key first. Sandbox applications accept sandbox_scenario slugs from the catalog at GET /v1/sandbox/scenarios/, which expands bundled magic values onto contact_details and expected_details so the session reproduces a known outcome. Run one end-to-end sandbox pass: launch the app, complete the flow, confirm the verified webhook, and compare the session decision with the scenario you armed.

Expected results and fixes during Expo testing
SymptomCauseFix
Approved with the expected results for the checks that ranExpected success with test dataCompare the results with the configured workflow and sandbox scenario, then store the decision
Create Session returns 403 with a permission messageMissing API key on verification.didit.meSend the x-api-key header from your server
Create Session returns 401Wrong, revoked or expired keyCreate a new key in the console and redeploy
400 on workflow_idInvalid workflow IDSend the correct workflow UUID in workflow_id
400 on callbackWhen allowed domains are configured, the callback origin is not allowedAdd the origin, or use a deep link scheme such as myapp://, which is always accepted
Native module not found in Expo GoExpo Go has no custom native codeBuild a development build with the config plugin
nfc_verifications[] emptyNo NFC chip or NFC disabledExpected fallback: the flow continues with OCR and face match
Declined with NFC_NOT_READ or NFC_BAC_FAILEDThe chip read did not completeLet the user retry and hold the phone in place
Declined with NFC_DATA_DOES_NOT_MATCH_OCRChip and printed data disagreeDo not approve based on this result. Review the mismatch under your verification policy
biometric_consent.status: "pending" with BIOMETRIC_CONSENT_UNSUPPORTED_SDKNative layer below 4.10.0, or an SDK that does not report its native versionUpgrade to 4.15.4, which pins native 4.15.4
Webhook not receivedHandler answered slower than 5 seconds or returned 5xxAnswer 2xx fast, then process; we retry twice after about 1 and 4 minutes, then drop the delivery
A verification session overview with its warnings in the Didit Business Console
Review a test session and its warnings in the Business Console.

What stays on your server

Keep the x-api-key, workflow_id and webhook destination secret on your server. The app receives the launch input from your server and never the API key. Your backend creates the session, stores the decision and uses the verified session decision for the KYC gate. Only grant access gated on a KYC approval when the backend sees Approved for that verified session.

SDK costs and verification pricing

On our side you pay per completed check from prepaid credit. A full check is three parts: ID document at $0.15, biometrics at $0.15 (passive liveness $0.10 plus face match 1:1 $0.05), and device and IP analysis at $0.03. That makes $0.33. NFC chip reading is a $0.15 add-on. AML screening is $0.20 per check and ongoing AML monitoring is $0.07 per person a year. The React Native SDK, the workflow orchestrator and the MCP server are free.

The Free plan gives $10 in monthly credit to the first organization created with an eligible work email for a company domain. That credit covers 30 full checks because 30 x $0.33 = $9.90. Sandbox testing is free and unlimited on every plan.

Worked example: 2,000 verifications a month, of which 400 read an NFC chip, and 500 run AML screening.

  • Free at list prices: 2,000 x $0.33 = $660.00; 400 x $0.15 = $60.00; 500 x $0.20 = $100.00. Usage is $820.00. With the $10.00 monthly credit for an eligible organization, the top-up outlay is $810.00, with no plan fee. Without that credit, the total is $820.00.
  • Growth, 4% off our prices: 2,000 x $0.3168 = $633.60; 400 x $0.144 = $57.60; 500 x $0.192 = $96.00. Usage is $787.20, minus $115.00 of plan credit = $672.20 from top-ups, plus the $99.00 monthly fee = $771.20.
  • Scale, 10% off our prices: 2,000 x $0.297 = $594.00; 400 x $0.135 = $54.00; 500 x $0.18 = $90.00. Usage is $738.00, minus $350.00 of credit = $388.00 from top-ups, plus the $299.00 monthly fee = $687.00.

Plan credit resets each month and does not roll over, and top-ups last 12 months. The calculator and the full price list are on didit.me/pricing.

Sources

Next step: create a free organization at business.didit.me, build a workflow with the checks you need, and run your first session from the React Native development build. No sales call, and the sandbox stays free while you test.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

Does the Didit React Native SDK work in Expo Go?

No. The SDK ships native iOS and Android code, so it needs the Expo config plugin and a development build. Expo Go contains a fixed set of native modules and cannot load it. Register the package as a config plugin as the React Native SDK guide shows, then rebuild.

What React Native version does the Didit SDK require?

React Native 0.76 or later, on the New Architecture. The overview table lists that as the minimum for the React Native package at version 4.15.4. React Native versions below 0.76 are unsupported.

What are the minimum iOS and Android versions?

iOS 13.0 or later and Android API 24 or later. NFC chip reading needs iOS 15.0 or later, or an Android device with NFC enabled. When NFC is unavailable the flow falls back to document OCR plus face match, and nfc_verifications[] comes back empty.

How do I install the Didit React Native SDK?

Run npm install @didit-protocol/sdk-react-native at the project root. Then register the package as a config plugin in your app config following the React Native SDK guide and rebuild the development build. The current release is 4.15.4, and React Native SDK 4.15.4 pins native SDK 4.15.4 and introduces no new JavaScript API.

Does the React Native SDK support NFC passport reading?

Yes. NFC chip reading in the React Native SDK requires iOS 15.0 or later, or an Android device with NFC enabled. The chip is read inside a verification session; there is no standalone NFC endpoint. Chip reading is billed as a $0.15 add-on per check. Follow the React Native SDK guide for the iOS build setup.

What does a verification cost inside an Expo app?

$0.33 for a full KYC check, $0.15 extra for NFC chip reading, $0.20 for AML screening. The SDK, workflow orchestrator and MCP server are free. Sandbox testing is free and unlimited. The Free plan gives $10 in monthly credit to the first organization created with an eligible work email for a company domain.

What happens if the user backgrounds the app on Android during verification?

From React Native 4.15.3, the Android launch behavior was fixed for startVerification and startVerificationWithWorkflow. If the app is sent to the background, the call waits until the app returns to the foreground before opening the verification screen and always settles. Use the React Native SDK guide for the exact launch input.

Which statuses should my app handle?

Handle Not Started, In Progress, Approved, Declined, In Review, Awaiting User, Resubmitted, Expired, Abandoned and Kyc Expired. They are exact case-sensitive strings, and Kyc Expired uses a single capital K. In Review is a pending manual decision, and Awaiting User is KYB only, waiting on key people; the full lifecycle is at docs.didit.me/integration/verification-statuses. Only grant access gated on a KYC approval when your backend sees Approved for that verified session decision.

Do I need biometric consent for users in Illinois, Texas or Colorado?

React Native 4.15.4 supports the consent step because it pins native 4.15.4. In Auto consent mode, user_state can trigger the prompt for Illinois, Texas or Colorado. If consent was already collected, send biometric_consent with given_at and text_version. A native SDK below 4.10.0, or one that does not report its native version, leaves the decision at pending with BIOMETRIC_CONSENT_UNSUPPORTED_SDK.

Can I test the Expo setup without paying?

Yes. Sandbox applications are free and unlimited on every plan, and sandbox sessions accept a sandbox_scenario slug so you can reproduce an approval or a decline on demand. Switch to the live key only when the organization has credit.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.