# @flagsmith/react-native 中文文档

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

版本：12\.5\.0
npm 元数据更新时间：2026-11-13T21:58:30.538Z
中文译文更新时间：2026-11-14T21:13:24.244Z
软件包许可：BSD-3-Clause

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

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

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

- 包体积（解压后）：415 kB，39 个文件
- 模块格式：CommonJS
- TypeScript 类型：包内自带
- 运行依赖：0 个
- peer 依赖：react-native \>=0\.20\.0
- 首次发布：2026-01-28T12:55:20.599Z
- 最新版本发布：2026-11-13T21:58:30.115Z
- 近 30 天下载量：27083（2026-10-15 至 2026-11-13，npm 官方下载统计）
- 已发布版本数：8（近 12 个月 8 个）

## 中文简介

支持持续发展的特点

## 安装

```sh
npm install @flagsmith/react-native
```

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

## README

![](https://github.com/Flagsmith/flagsmith/raw/main/static-files/hero.png)

# Flagsmith 反应本地客户端

[![npm version](https://badge.fury.io/js/@flagsmith/react-native.svg)](https://badge.fury.io/js/@flagsmith/react-native) [![](https://data.jsdelivr.com/v1/package/npm/@flagsmith/react-native/badge)](https://www.jsdelivr.com/package/npm/@flagsmith/react-native)

反应原生 SDK 客户端 [https://www.flagsmith.com/ (中文(简体) )](https://www.flagsmith.com/)。Flagsmith允许您管理多个项目、环境和组织的特性旗帜和远程配置.

## 安装

```bash
npm install @flagsmith/react-native
# or
yarn add @flagsmith/react-native
```

## 添加到您的项目中

完整文件访问 [https://docs.flagsmith.com/clients/javascript/#npm- for-resact-native 互联网档案馆的存檔,存档日期2014-12-21](https://docs.flagsmith.com/clients/javascript/#npm-for-react-native)

## 捐款

请阅读 [捐款额](https://gist.github.com/kyle-ssg/c36a03aebe492e45cbd3eefb21cb0486) 详细介绍我们的行为守则和向我们提交拉动请求的程序.

## 获取帮助

如果你遇到错误或特征请求 我们想听听 在提交问题之前,请搜索现有问题,以防止重复.

## 保持联系

如果你对我们的项目有任何疑问 你可以发电子邮件 [支持@ flagsmith.com](mailto:support@flagsmith.com)。 。 。 .

## 有用链接

[网站](https://www.flagsmith.com/)

[文档](https://docs.flagsmith.com/)

## 常见问题

### @flagsmith/react-native 是什么？

支持持续发展的特点

### 如何安装 @flagsmith/react-native？

在项目目录运行 npm install @flagsmith/react-native，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react-native（\>=0\.20\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @flagsmith/react-native 支持 TypeScript 吗？

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

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

以 CommonJS 形式发布，可以直接 require\(\)；在 ES Module 项目中也可以用 import 引入（Node\.js 会把 module\.exports 作为默认导出）。

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

@flagsmith/react-native 使用 BSD-3-Clause 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。另外不得用原作者名义为衍生产品背书。以上为概括，不构成法律意见，请以许可原文为准。

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

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

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

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

