Skip to content

Update Embedded Wallets React Native docs for SDK v10 - #3084

Closed
yashovardhan wants to merge 2 commits into
mainfrom
claude/embedded-wallet-rn-docs-e2bafb
Closed

yashovardhan wants to merge 2 commits into
mainfrom
claude/embedded-wallet-rn-docs-e2bafb

Conversation

@yashovardhan

@yashovardhan yashovardhan commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Description

Updates the Embedded Wallets React Native docs to match the published @web3auth/react-native-sdk 10.0.0. The previous pages described v9 (useWeb3Auth().provider, web3Auth.signer), which no longer exist in v10.

SDK reference

  • Get started rewritten for v10. After sign-in, useWeb3Auth().connection exposes ethereumProvider (EIP-1193) and solanaWallet (Wallet Standard). connectTo resolves to Connection | null and does not throw.
  • New hook pages: useAccessToken, useAuthTokenInfo, useRefreshSession. useIdentityToken is now marked deprecated.
  • New pages: Ethereum hooks (Wagmi) (@web3auth/react-native-sdk/wagmi) and Solana hooks (@web3auth/react-native-sdk/solana: SolanaProvider, useSolanaWallet, useSignMessage, useSignTransaction, useSignAndSendTransaction).
  • Corrected reference data:
    • connectTo parameters: removed the nonexistent redirectUrl and sessionTime.
    • AUTH_CONNECTION: removed WEIBO; added REDDIT and TELEGRAM.
    • MFA_LEVELS: removed DEFAULT; mfaLevel is a connectTo option.
    • web3AuthOptions: rewritten from SdkInitParams.
    • Whitelabel fields updated.
    • Solana chain IDs are now 0x65/0x66/0x67. The SDK maps only these to Wallet Standard chains.
  • react-native-quick-crypto 1.x is documented as required, along with react-native-nitro-modules and react-native-quick-base64.
  • Gradle 9 workaround: @toruslabs/react-native-web-browser 1.1.0 still calls jcenter().
  • Smart accounts, custom authentication (including how idToken sign-in behaves), dapp share, and MFA pages updated to SDK behavior.

Elsewhere

  • Migration guide retargeted to v10, with a short v9 → v10 path and a full v3–v8 path, including the agent prompt.
  • EVM connect-blockchain snippets (shared by 45 chain pages) now use connection.ethereumProvider with viem. Removed the @web3auth/base getEvmChainConfig usage from the Ethereum and Monad pages.
  • Solana React Native page rewritten. The Send SOL sample type-checks against @solana/kit 6 and @solana-program/system 0.12.
  • Metro troubleshooting: v10 setup plus a "Common errors" section.
  • Quickstart builder: removed the fetch of the nonexistent globals.js and pointed steps at markers that exist in rn-bare-quick-start.
  • Auth0 and Firebase React Native snippets moved from the v7 class API to connectTo.
  • Firebase and Solana examples added to the examples page.
  • Removed six unused v8 account abstraction partials.

Verification

  • npm run build succeeds with no broken links or anchors. tsc --noEmit, Prettier, and Vale pass on the changed files; the remaining Vale notes are in pre-existing text or code identifiers.
  • Android emulator (RN 0.84, published 10.0.0, quick-crypto 1.1.9): SDK init succeeds and connectTo opens the auth page with the correct URL.
  • Also reproduced on the emulator:
    • quick-crypto 0.7.x: the native library doesn't load on 16 KB-page devices, so login fails in randomBytes.
    • Gradle 9: the jcenter() build failure.
  • Not exercised end to end: completed sign-in, Wagmi, Solana signing, and Expo.

Issue(s) fixed

Fixes #

Preview

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

- Rewrite the React Native SDK pages for @web3auth/react-native-sdk 10.0.0:
  useWeb3Auth().connection (ethereumProvider, solanaWallet) replaces
  provider/signer; connectTo resolves Connection | null.
- Add hook pages for useAccessToken, useAuthTokenInfo, and
  useRefreshSession; mark useIdentityToken deprecated.
- Add Ethereum hooks (Wagmi) and Solana hooks pages, including the
  polyfills and @web3auth/auth shim that Solana needs on 10.0.0.
- Fix connectTo parameters, web3AuthOptions, MFA levels, whitelabel
  fields, and Solana chain IDs (0x65/0x66/0x67).
- Require react-native-quick-crypto 1.x and document the Gradle 9
  jcenter() workaround for @toruslabs/react-native-web-browser.
- Rewrite the React Native migration guide to target v10 (from v3-v9).
- Update EVM and Solana connect-blockchain pages, Metro troubleshooting,
  the quickstart builder, and Auth0/Firebase React Native snippets.
- Remove unused v8 account abstraction partials.
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
metamask-docs Ready Ready Preview Nov 9, 2026 5:17pm UTC

Request Review

- Match the official examples: React Native 0.74 (bare) and Expo SDK 51,
  and the quickstart's minSdkVersion 23 / compileSdkVersion 34.
- Document react-native-quick-crypto by version: 1.x (with
  react-native-nitro-modules and react-native-quick-base64 3.x+) for
  React Native 0.75+ with the New Architecture, 0.7.x otherwise. Label the
  16 KB-page and randomBytes failures as observed on an emulator.
- Migration guide: remove the useWeb3AuthUser row (v9 already returned
  isMFAEnabled and getUserInfo), describe the real connectTo change
  (WalletResult to Connection), and limit "doesn't throw" to the hook.
- Scope smart account address order, user operations, and key export
  limits to ERC-4337; note EIP-7702 behavior.
- Dapp share: kept until sign-out; a stored share overrides a dappShare
  passed to connectTo.
- Quickstart: match the getWeb3AuthConfig(withAA) example and remove the
  unreachable wallet-aggregator step.
- Add PASSKEYS and AUTHENTICATOR, walletSdkURL, AppOwnership.Guest;
  correct whitelabel mode default (light), dappUrl, defaultChainId
  fallback, provider recreation, useAuthTokenInfo token on idToken
  sessions, and the MFA highlight directive.
- Session time defaults to the dashboard value (30 days by default).
- Replace web3.js / ethers v5 wording on the React Native chain pages.
@yashovardhan

Copy link
Copy Markdown
Member Author

Superseded by #3086, which combines this branch with the other Embedded Wallets SDK docs updates and the rebrand into one PR for review. No further changes should land here.

This branch was successfully deployed

1 active deployment
Preview — 6d23f495 Deployed Nov 9, 2026 by vercel[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