Tss lib for react-native ** only for react-native **
npm install @toruslabs/react-native-tss-lib-bridgeTss lib for react-native
only for react-native
``sh`
npm install --save @toruslabs/react-native-tss-lib-bridge
3.
`js
import { Bridge } from "@toruslabs/react-native-tss-lib-bridge";
import * as TssLibRN from "@toruslabs/react-native-tss-lib-bridge";
import {
Web3AuthMPCCoreKit,
} from '@web3auth/mpc-core-kit';
class ReactStorage implements IAsyncStorage {
async getItem(key: string): Promise
return EncryptedStorage.getItem(key);
}
async setItem(key: string, value: string): Promise
return EncryptedStorage.setItem(key, value);
}
}
const coreKitInstancelocal = new Web3AuthMPCCoreKit({
web3AuthClientId: 'torus-key-test',
web3AuthNetwork: WEB3AUTH_NETWORK.DEVNET,
uxMode: 'react-native',
asyncStorageKey: new ReactStorage(),
tssLib: TssLibRN,
});
// ...
...
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
---
Made with create-react-native-library