# @hyperledger/anoncreds-react-native

> React Native wrapper for Anoncreds

Latest version **0.4.1** (published 2026-09-24) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @hyperledger/anoncreds-react-native
pnpm add @hyperledger/anoncreds-react-native
yarn add @hyperledger/anoncreds-react-native
bun add @hyperledger/anoncreds-react-native
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2026-09-24 |
| First published | 2023-02-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 183.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Hyperledger |
| Maintainers | hyperledger-lf, hyperledger-ghci, openwalletfoundation, lfdt-npm, rafaelapb |

## Links

- npm: https://www.npmjs.com/package/@hyperledger/anoncreds-react-native
- Repository: https://github.com/anoncreds/anoncreds-wrapper-javascript
- Homepage: https://github.com/anoncreds/anoncreds-wrapper-javascript/tree/main/packages/anoncreds-react-native
- Issues: https://github.com/anoncreds/anoncreds-wrapper-javascript/issues
- npm.io page: https://npm.io/package/@hyperledger/anoncreds-react-native

## Dependencies (1)

- [@hyperledger/anoncreds-shared](https://npm.io/package/@hyperledger/anoncreds-shared.md) 0.4.1

## Recent versions

- 0.4.1 (latest) — 2026-09-24
- 0.4.1-alpha-20260924102630 (alpha) — 2026-09-24
- 0.4.1-alpha-20260609124337 — 2026-06-09
- 0.4.1-alpha-20260609124055 — 2026-06-09
- 0.4.1-alpha-20260519194331 — 2026-05-19
- 0.4.1-alpha-20260401185902 — 2026-04-01
- 0.4.0 — 2026-04-01
- 0.4.0-alpha-20260327110255 — 2026-03-27
- 0.4.0-alpha-20260327105745 — 2026-03-27
- 0.4.0-alpha-20260327071141 — 2026-03-27
- 0.4.0-alpha-20260302110120 — 2026-03-02
- 0.4.0-alpha-20260212144625 — 2026-02-12
- 0.4.0-alpha-20260212142546 — 2026-02-12
- 0.3.5-alpha-20260107085331 — 2026-01-07
- 0.3.5-alpha-20251114202656 — 2025-11-14
- … 47 more at https://npm.io/package/@hyperledger/anoncreds-react-native/versions

## README

# Anoncreds React Native

Wrapper for React Native around anoncreds

## Requirements

This module uses the new React Native Turbo Modules. These are faster than the
previous Native Modules, and can be completely synchronous. A React Native
version of `>= 0.66.0` is required for this package to work.

## Installation

```sh
yarn add @hyperledger/anoncreds-react-native
```

## Usage

You can import all types and classes from the `@hyperledger/anoncreds-react-native` library:

```typescript
import { Schema } from '@hyperledger/anoncreds-react-native'

const schema = Schema.create({
  name: 'test',
  version: '1.0',
  issuerId: 'mock:uri',
  attributeNames: ['name', 'age', 'address']
})

// JSON representation
const schemaJson = schema.toJson()

// This can be used as a deconstructor to clear the internal reference to
// the anoncreds object
schema.handle.clear()
```

> **Note**: If you want to use this library in a cross-platform environment you need to import methods from the `@hyperledger/anoncreds-shared` package instead. This is a platform independent package that allows to register the native bindings. The `@hyperledger/anoncreds-react-native` package uses this package under the hood. See the [Anoncreds Shared README](https://github.com/anoncreds/anoncreds-wrapper-javascript/tree/main/packages/anoncreds-shared/README.md) for documentation on how to use this package.

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