Skip to content

docs: add React Native Expo SDK reference - #205

Merged
Takaros999 merged 2 commits into
mainfrom
takis/idkit-react-native-docs
Oct 3, 2026
Merged

Takaros999 merged 2 commits into
mainfrom
takis/idkit-react-native-docs

Conversation

@Takaros999

Copy link
Copy Markdown
Contributor

Adds React Native under SDK Reference with concise Expo SDK 57 installation and usage instructions:

npx expo install @worldcoin/idkit expo-crypto
import { useIDKitRequest, proofOfHuman } from "@worldcoin/idkit/expo";

Explains that /expo exports the same headless hooks as /hooks and automatically configures secure randomness through Expo Crypto. Apps supply their own native UI; the page links the existing hook reference for options and results.

Release dependency: keep this draft until the /expo entry from worldcoin/idkit#343 is released. Public npm availability has not been verified.

Validation: CSpell on both changed files, whole-site Mintlify broken-link check, and git diff --check passed. Source checked against IDKit commit 14019ee.

@mintlify

mintlify Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
world 🟢 Ready View Preview Oct 3, 2026, 7:41 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@Takaros999
Takaros999 marked this pull request as ready for review October 3, 2026 19:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T19:55:17.020834Z 57556d5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Takaros999
Takaros999 merged commit 94e64b6 into main Oct 3, 2026
9 checks passed
@Takaros999
Takaros999 deleted the takis/idkit-react-native-docs branch October 3, 2026 19:52

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57556d5f26

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs.json
"pages": [
"world-id/idkit/javascript",
"world-id/idkit/react",
"world-id/idkit/react-native",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the unreleased Expo guide out of navigation

If this documentation is deployed before the /expo entry from worldcoin/idkit#343 is published, this navigation entry exposes instructions whose @worldcoin/idkit/expo import cannot be resolved from the public package. The commit explicitly records that release as a dependency and says public npm availability was not verified, so keep the page hidden until the package release is confirmed.

Useful? React with 👍 / 👎.

<Button
title="Start verification"
onPress={flow.open}
disabled={flow.isOpen}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a state field returned by the hook

In a TypeScript Expo app, this sample fails because useIDKitRequest does not expose isOpen; the hook result documented in world-id/idkit/react.mdx exposes states such as isAwaitingUserConnection and isAwaitingUserConfirmation instead. In untyped execution the value is always undefined, so the button also remains enabled and permits repeated requests while a flow is active.

Useful? React with 👍 / 👎.

Comment on lines +49 to +50
preset: proofOfHuman(),
allow_legacy_proofs: false,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve legacy fallback in the generic PoH example

When an app still supports users who have not obtained a World ID 4.0 credential, setting allow_legacy_proofs to false disables the Orb fallback that proofOfHuman() is intended to provide, preventing those users from completing this otherwise generic example. The existing Proof of Human reference uses true and reserves false for an app-specific v4-only cutover, so this sample should either retain fallback or explicitly identify the prerequisite and reduced audience.

Useful? React with 👍 / 👎.

This branch was successfully deployed

1 active deployment
staging — 57556d5f Deployed Oct 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant