`import { Bridge, mpclib, TssDklsLib } from "@web3auth/react-native-mpc-core-kit";

Open
#21 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
10/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
react-native, typescript
Domain
mobile-dev

Research direction

The issue contains only a React Native TypeScript import and initialization snippet; it names no repository file, test, error, or requested behavior. Start by reviewing the single comment and clarifying the failure or desired change; completion criteria cannot be determined from the current payload.

Written by the indexing model from the issue text.

Description

`import { Bridge, mpclib, TssDklsLib } from "@web3auth

class ReactStorage implements IAsyncStorage {
async getItem(key: string): Promise<string | null> {
return SecureStorage.getItem(key);
}

async setItem(key: string, value: string): Promise {
return SecureStorage.setItem(key, value);
}
}
const coreKitInstancelocal = new mpclib.Web3AuthMPCCoreKitRN({
web3AuthClientId: 'torus-key-test',
web3AuthNetwork: WEB3AUTH_NETWORK.DEVNET,
uxMode: 'react-native',
asyncStorageKey: new ReactStorage(),
tssLib: TssDklsLib,
});

const [bridgeReady, setBridgeReady] = useState(false);

// ...
useEffect(() => {
if (bridgeReady) {
const init = async () => {
try {
// IMP START - SDK Initialization
await coreKitInstance.init();
// IMP END - SDK Initialization
} catch (error: any) {
uiConsole(error.message, "mounted caught");
}
setCoreKitStatus(coreKitInstance.status);
};
init();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [bridgeReady]);

{ setBridgeReady(ready); }} /> ... `
Dominant language
TypeScript
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from MetaMask/react-native-mpc-core-kit

All issues in MetaMask/react-native-mpc-core-kit

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.