MetaMask / MetaMask/react-native-mpc-core-kit
`import { Bridge, mpclib, TssDklsLib } from "@web3auth/react-native-mpc-core-kit";
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
`import { Bridge, mpclib, TssDklsLib } from "@web3auth
class ReactStorage implements IAsyncStorage {
async getItem(key: string): Promise {
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);
}}
/>
...
`
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100