# react-native-keychain

> Keychain Access for React Native

Latest version **11.0.0** (published 2026-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-keychain
pnpm add react-native-keychain
yarn add react-native-keychain
bun add react-native-keychain
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.0.0 |
| Published | 2026-11-06 |
| First published | 2015-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.4 |
| Dependencies | 0 |
| Unpacked size | 294 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3489 |
| Author | Joel Arvidsson |
| Maintainers | oblador |
| Keywords | react-native, react-component, react-native-component, react, mobile, ios, android, keychain |

## Links

- npm: https://www.npmjs.com/package/react-native-keychain
- Repository: https://github.com/oblador/react-native-keychain
- Homepage: https://oblador.github.io/react-native-keychain
- Issues: https://github.com/oblador/react-native-keychain/issues
- npm.io page: https://npm.io/package/react-native-keychain

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 11.0.0 (latest) — 2026-11-06
- 10.0.0 — 2025-03-23
- 9.2.3 — 2025-02-13
- 9.2.2 — 2024-11-21
- 9.2.1 — 2024-11-13
- 9.2.0 — 2024-11-11
- 9.1.0 — 2024-10-24
- 9.0.0 — 2024-10-03
- 8.2.0 — 2024-02-29
- 8.1.3 — 2024-02-17
- 8.1.2 — 2023-07-28
- 8.1.1 — 2022-07-08
- 8.1.0 — 2022-06-23
- 8.0.0 — 2021-10-02
- 7.0.0 — 2021-04-13
- … 39 more at https://npm.io/package/react-native-keychain/versions

## README

<h1 align="center"><img
    src="website/docs/public/img/logo.png"
    align="center" width="50" height="50" alt=""
  /> react-native-keychain</h1>

[![Tests](https://github.com/oblador/react-native-keychain/actions/workflows/e2e_tests.yaml/badge.svg)](https://github.com/oblador/react-native-keychain/actions/workflows/e2e_tests.yaml) [![npm](https://img.shields.io/npm/v/react-native-keychain.svg)](https://npmjs.com/package/react-native-keychain) [![npm](https://img.shields.io/npm/dm/react-native-keychain.svg)](https://npmjs.com/package/react-native-keychain)

This library provides access to the Keychain (iOS) and Keystore (Android) for securely storing credentials like passwords, tokens, or other sensitive information in React Native apps.

- [Installation](#installation)
- [Example app](#example-app)
- [Documentation](#documentation)
- [Changelog](#changelog)
- [Maintainers](#maintainers)
- [Used By](#used-by)
- [License](#license)

## Installation

React Native **0.82 or later** with the **New Architecture** is required for the upcoming 11.x release. Use 10.x for older React Native versions or the Old Architecture. The iOS minimum is **15.1** and Android minimum is **API 24**. Development requires **Node.js 20.19.4+**, **JDK 17**, and **Xcode 16.1+**.

1. Run `yarn add react-native-keychain`
2. Run `pod install` in `ios/` directory to install iOS dependencies.
3. If you want to support FaceID, add a `NSFaceIDUsageDescription` entry in your `Info.plist`.
4. Re-build your Android and iOS projects.

## Example app

The [example app](KeychainExample) lets you save, load, and reset generic passwords and internet credentials, choose protection options, and inspect the returned service or server and storage type. Retrieved passwords stay hidden until you reveal them.

| iOS                                                                                                                                                         | Android                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="KeychainExample/media/ios-demo.gif" width="260" alt="iOS example: select Face ID protection, save credentials, and inspect the loaded result." /> | <img src="KeychainExample/media/android-demo.gif" width="260" alt="Android example: choose cipher storage, save credentials, and inspect the result." /> |
| [Watch the iOS demo](KeychainExample/media/ios-demo.mp4)                                                                                                    | [Watch the Android demo](KeychainExample/media/android-demo.mp4)                                                                                         |

To run it locally, install workspace dependencies with `yarn install`. For iOS, also run `bundle install` and `bundle exec pod install --project-directory=ios` from `KeychainExample/`. Then run `yarn workspace KeychainExample ios` or `yarn workspace KeychainExample android` from the repository root.

## Documentation

Read the [documentation](https://oblador.github.io/react-native-keychain/) for setup, guides, and the API reference. To work on the VitePress site, see [website/README.md](website/README.md).

## Changelog

Check the [GitHub Releases page](https://github.com/oblador/react-native-keychain/releases).

## Maintainers

<table>
  <tbody>
    <tr>
      <td align="center">
        <a href="https://github.com/oblador">
          <img width="100" height="100" src="https://github.com/oblador.png?v=3&s=150">
          <br />
          <strong>Joel Arvidsson</strong>
        </a>
        <br />
        Author
      </td>
      <td align="center">
        <a href="https://github.com/DorianMazur">
          <img width="100" height="100" src="https://github.com/DorianMazur.png?v=3&s=150">
          <br />
          <strong>Dorian Mazur</strong>
        </a>
        <br />
        Maintainer
      </td>
      <td align="center">
        <a href="https://github.com/vonovak">
          <img width="100" height="100" src="https://github.com/vonovak.png?v=3&s=150">
          <br />
          <strong>Vojtech Novak</strong>
        </a>
        <br />
        Maintainer
      </td>
      <td align="center">
        <a href="https://github.com/pcoltau">
          <img width="100" height="100" src="https://github.com/pcoltau.png?v=3&s=150">
          <br />
          <strong>Pelle Stenild Coltau</strong>
        </a>
        <br />
        Maintainer
      </td>
      <td align="center">
        <a href="https://github.com/OleksandrKucherenko">
          <img width="100" height="100" src="https://github.com/OleksandrKucherenko.png?v=3&s=150">
          <br />
          <strong>Oleksandr Kucherenko</strong>
        </a>
        <br />
        Contributor
      </td>
    </tr>
  <tbody>
</table>

## Used By

This library is used by several projects, including:

- [Rainbow Wallet](https://github.com/rainbow-me/rainbow)
- [MetaMask Mobile](https://github.com/MetaMask/metamask-mobile)
- [BlueWallet](https://github.com/bluewallet/bluewallet)

## License

MIT © Joel Arvidsson 2016-2020

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