alchemyplatform / alchemyplatform/aa-sdk

`useSendCalls` hook unavailable through React Native package

Open
#2,284 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
321
Forks
231
Avg merge
43m
Merged PRs (30d)
3

Description

Environment
  • AA SDK version: 4.81.0
  • Package: react-native
Describe the problem

useSendCalls is not available for import either through @account-kit/react-native or @account-kit/react/hooks, making it unavailable in React Native builds

How to reproduce:
const { client } = useSmartAccountClient({
	accountParams: {
		mode: "7702",
	}
});
  • Attempt to use the client with useSendCalls:
const { sendCallsAsync } = useSendCalls({ client });
  • Note, there is nowhere to import useSendCalls from
Relevant code or sample repro:
import { useSendCalls } from "@account-kit/react-native";

or

import { useSendCalls } from "@account-kit/react/hooks";

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the exports of @account-kit/react-native and @account-kit/react/hooks, then compare them with the React Native package's available hooks. Verify the Expo quickstart using EIP-7702 mode and confirm that useSendCalls can be imported and used to obtain sendCallsAsync in a React Native build.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.