Skip to content

fix(react-native): add useSolanaWallet to value exports#2348

Open
jose-compu wants to merge 1 commit intoalchemyplatform:mainfrom
jose-compu:fix/react-native-useSolanaWallet-export-type-2307
Open

fix(react-native): add useSolanaWallet to value exports#2348
jose-compu wants to merge 1 commit intoalchemyplatform:mainfrom
jose-compu:fix/react-native-useSolanaWallet-export-type-2307

Conversation

@jose-compu
Copy link
Copy Markdown

@jose-compu jose-compu commented Feb 16, 2026

Summary

  • useSolanaWallet was missing from the named value export list in @account-kit/react-native, causing TS1362: 'useSolanaWallet' cannot be used as a value because it was exported using 'export type'.
  • The hook was only re-exported via export type * from "@account-kit/react/hooks", making it available as a type but not as a callable runtime value.
  • Added useSolanaWallet to the explicit export { ... } block in account-kit/react-native/src/index.ts.

Fixes #2307

Test plan

  • Built @account-kit/react-native and verified useSolanaWallet appears in the value export statement of dist/types/index.d.ts (not only as a type export).
  • Confirmed useSolanaWallet is present in the ESM output (dist/esm/index.js).
  • Verified that before this change, the symbol was absent from both outputs.
  • Prettier passes. ESLint blocked repo-wide by missing OPENAI_API_KEY in ESLint plugin (unrelated).
  • Commit message validated with commitlint.

PR-Codex overview

This PR introduces a new hook to the index.ts file in the account-kit/react-native/src directory, enhancing the functionality related to Solana wallet integration.

Detailed summary

  • Added useSolanaWallet to the exports from @account-kit/react/hooks.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

useSolanaWallet was missing from the named value export list in
@account-kit/react-native, causing TS1362: cannot be used as a value
because it was exported using 'export type'.

Fixes alchemyplatform#2307

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

@jose-blockchain is attempting to deploy a commit to the Alchemy Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a TypeScript export issue where useSolanaWallet hook was only available as a type export in @account-kit/react-native, causing runtime errors when developers tried to use it. The hook was missing from the explicit value export list, making it unusable despite being needed for Solana wallet functionality.

Changes:

  • Added useSolanaWallet to the named value export list in account-kit/react-native/src/index.ts, placing it in correct alphabetical order between useSolanaTransaction and useUser

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.

useSolanaWallet hook cannot be used as a value because it was exported using 'export type'.

2 participants