# @exodus/react-native-keychain 中文文档

规范地址：https://npmcn.com/package/%40exodus/react-native-keychain/

版本：9\.2\.9
npm 元数据更新时间：2026-11-12T19:04:22.033Z
中文译文更新时间：2026-11-14T04:06:28.201Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40exodus/react-native-keychain
原文对照：https://npmcn.com/package/%40exodus/react-native-keychain/?lang=original
项目主页：https://oblador.github.io/react-native-keychain
源码仓库：https://github.com/oblador/react-native-keychain

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：263 kB，62 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- Node.js 要求：\>=16
- 运行依赖：0 个
- 首次发布：2024-08-08T09:33:23.419Z
- 最新版本发布：2026-11-12T19:04:21.698Z
- 近 30 天下载量：11494（2026-10-14 至 2026-11-12，npm 官方下载统计）
- 已发布版本数：14（近 12 个月 9 个）

## 中文简介

本地反应的密钥链访问

## 安装

```sh
npm install @exodus/react-native-keychain
```

也可以使用：`pnpm add @exodus/react-native-keychain`、`yarn add @exodus/react-native-keychain`、`bun add @exodus/react-native-keychain`

## README

# ![](https://npmcn.com/package/%40exodus/react-native-keychain/website/static/img/logo.png) 反应-内生-键链

[![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)

这个库提供对Keychain(iOS)和Keystore(Android)的访问,用于在React Introduction apps中安全地存储像密码,信使等证书或其他敏感信息.

-   [安装](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-installation)
-   [文档](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-documentation)
-   [更改日志](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-changelog)
-   [维护者](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-maintainers)
-   [用户](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-used-by)
-   [许可证](https://npmcn.com/package/%40exodus/react-native-keychain/#readme-license)

## 安装

1.  运行 `yarn add react-native-keychain`
2.  运行 `pod install` 内 `ios/` 用于安装iOS依赖的目录.
3.  如果您想要支持 FaceID, 请添加一个 `NSFaceIDUsageDescription` 输入 `Info.plist`。 。 。 .
4.  重建你的Android和iOS项目.

## 文档

请参看2008年12月31日的文件网站 [https://oblador.github.io/ react-native-keychain 互联网档案馆的存檔,存档日期2013-12-02](https://oblador.github.io/react-native-keychain)

## 更改日志

检查 [GitHub 发布页面](https://github.com/oblador/react-native-keychain/releases)。 。 。 .

## 维护者

<table><tbody><tr><td align="center"><a href="https://github.com/oblador" rel="nofollow noopener noreferrer"><img height="100" src="https://github.com/oblador.png?v=3&amp;s=150" width="100" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><strong>乔尔·阿维德松</strong></a><br>作者</td><td align="center"><a href="https://github.com/DorianMazur" rel="nofollow noopener noreferrer"><img height="100" src="https://github.com/DorianMazur.png?v=3&amp;s=150" width="100" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><strong>多利安·马祖尔</strong></a><br>维护者</td><td align="center"><a href="https://github.com/vonovak" rel="nofollow noopener noreferrer"><img height="100" src="https://github.com/vonovak.png?v=3&amp;s=150" width="100" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><strong>Vojtech 诺瓦克</strong></a><br>维护者</td><td align="center"><a href="https://github.com/pcoltau" rel="nofollow noopener noreferrer"><img height="100" src="https://github.com/pcoltau.png?v=3&amp;s=150" width="100" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><strong>佩勒·斯泰尼尔德·科尔陶</strong></a><br>维护者</td><td align="center"><a href="https://github.com/OleksandrKucherenko" rel="nofollow noopener noreferrer"><img height="100" src="https://github.com/OleksandrKucherenko.png?v=3&amp;s=150" width="100" loading="lazy" decoding="async" referrerpolicy="no-referrer"><br><strong>库切连科</strong></a><br>贡献者</td></tr></tbody><tbody></tbody></table>

## 用户

这个库被几个项目所使用,包括:

-   [彩虹钱包](https://github.com/rainbow-me/rainbow)
-   [元掩码移动](https://github.com/MetaMask/metamask-mobile)
-   [蓝钱包](https://github.com/bluewallet/bluewallet)

## 许可证

麻省理工学院 Joel Arvidsson 2016-2020

## 常见问题

### @exodus/react-native-keychain 是什么？

本地反应的密钥链访问

### 如何安装 @exodus/react-native-keychain？

在项目目录运行 npm install @exodus/react-native-keychain，或使用 pnpm add / yarn add / bun add。

### @exodus/react-native-keychain 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @exodus/react-native-keychain 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @exodus/react-native-keychain 需要什么版本的 Node\.js？

package\.json 的 engines 字段要求 Node\.js \>=16。版本不符时 npm 默认只给出警告，开启 engine-strict 后会拒绝安装。

### @exodus/react-native-keychain 可以商用吗？

@exodus/react-native-keychain 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @exodus/react-native-keychain 的下载量有多少？

根据 npm 官方下载统计，@exodus/react-native-keychain 在 2026/10/14 – 2026/11/12 这 30 天内被下载 11,494 次，日均约 383 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @exodus/react-native-keychain 还在维护吗？

最新版本 9\.2\.9 发布于 2026/11/13（1 天前）；至今共发布 14 个版本，其中过去 12 个月发布了 9 个；首次发布于 2024/08/08。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

