Repository navigation
docs: add React Native Expo SDK reference - #205
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| "pages": [ | ||
| "world-id/idkit/javascript", | ||
| "world-id/idkit/react", | ||
| "world-id/idkit/react-native", |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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 👍 / 👎.
| preset: proofOfHuman(), | ||
| allow_legacy_proofs: false, |
There was a problem hiding this comment.
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 👍 / 👎.
Adds React Native under SDK Reference with concise Expo SDK 57 installation and usage instructions:
Explains that
/expoexports the same headless hooks as/hooksand 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
/expoentry 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 --checkpassed. Source checked against IDKit commit14019ee.