# @toruslabs/react-native-tss-lib-bridge

> Tss lib for react-native ** only for react-native **

Latest version **2.2.0** (published 2024-09-23) · BSD license · 0 weekly downloads

## Install

```sh
npm install @toruslabs/react-native-tss-lib-bridge
pnpm add @toruslabs/react-native-tss-lib-bridge
yarn add @toruslabs/react-native-tss-lib-bridge
bun add @toruslabs/react-native-tss-lib-bridge
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2024-09-23 |
| First published | 2023-12-12 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 93.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Web3Auth |
| Maintainers | archit_web3, himanshunpm009, torusresearch, chaitanyapotti, tetratorus |

## Links

- npm: https://www.npmjs.com/package/@toruslabs/react-native-tss-lib-bridge
- npm.io page: https://npm.io/package/@toruslabs/react-native-tss-lib-bridge

## Recent versions

- 2.2.0 (latest) — 2024-09-23
- 2.1.0 — 2024-09-12
- 2.0.0 — 2024-08-29
- 0.1.0 — 2023-12-12

## README

# @toruslabs/react-native-tss-lib-bridge

Tss lib for react-native
** only for react-native **

## Installation

```sh
npm install --save @toruslabs/react-native-tss-lib-bridge
```

## Usage
1. Install required peer dependency
   https://github.com/torusresearch/react-native-tss-lib/blob/4cf28633cb5c066c7237821441e4d6497e3041d4/package.json#L87
   
2. configure metro.config
    https://github.com/inokawa/react-native-react-bridge#1-fix-metroconfigjs-to-use-babeltransformer-from-this-library

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<string | null> {
    return EncryptedStorage.getItem(key);
  }

  async setItem(key: string, value: string): Promise<void> {
    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,
});

// ...

<View>
<Bridge  />
...
<View>
```


## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---
_Source: https://npm.io/package/@toruslabs/react-native-tss-lib-bridge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
