@gainsight-px/react-native-gainsight-px

中文文档
1.12.4发布于 2025/05/05TypeScriptCommonJS零依赖构建来源已验证近 30 天下载 8322

React Native Bridge Implementation for Gainsight PX

原始使用文档
文档目录5 节
  1. npm
  2. Expo
  3. Usage
  4. Editor Deeplinking
  5. License

React Native GainsightPX

N|Solid

version

Installation

GainsighPX is available through npm.

npm

 "dependencies": {
    ...,
    ...,
    "@gainsight-px/react-native-gainsight-px": "https://github.com/Gainsight/px-react-native-sdk.git"
  }

OR

npm install https://github.com/Gainsight/px-react-native-sdk.git --save

ALSO it's available directly on npm

npm i @gainsight-px/react-native-gainsight-px

Expo

Run the expo command as directed after installing the package using the npm command.

npx expo run:ios
npx expo run:android

Building on EAS (Expo Application Service)

If there are problem building the apps on EAS or even locally, please add the following to your package.json file:

"expo": {
    "autolinking": {
      "exclude": ["@gainsight-px/react-native-gainsight-px"]
    }
  }

Usage

import { GainsightPX, Configurations, PXUser } from "@gainsight-px/react-native-gainsight-px";

Documentation

More detailed documentation is available at: https://support.gainsight.com/PX/Mobile/Mobile_Platforms/Install_Gainsight_PX_React-Native

Editor Deeplinking

More detailed documentation is available at: https://support.gainsight.com/PX/Mobile/01Getting_Started/Integrate_Gainsight_PX_Editor_with_your_Mobile_Platform

License

MIT License

Copyright (c) 2019 aptrinsic

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

版本与发布记录

@gainsight-px/react-native-gainsight-px 共发布 6 个版本,首次发布于 2023/06/28;过去 12 个月发布了 0 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.12.4latest2025/05/051.5 年前
1.12.32025/04/011.6 年前
1.11.12024/05/092 年前
1.11.02024/04/112 年前
1.10.12023/08/103 年前
1.9.12023/06/283 年前

关于 @gainsight-px/react-native-gainsight-px 的常见问题

@gainsight-px/react-native-gainsight-px 是什么?

React Native Bridge Implementation for Gainsight PX

如何安装 @gainsight-px/react-native-gainsight-px?

在项目目录运行 npm install @gainsight-px/react-native-gainsight-px,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react-native(>= 0.59.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@gainsight-px/react-native-gainsight-px 支持 TypeScript 吗?

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

@gainsight-px/react-native-gainsight-px 支持 ESM 还是 CommonJS?

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

@gainsight-px/react-native-gainsight-px 可以商用吗?

@gainsight-px/react-native-gainsight-px 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@gainsight-px/react-native-gainsight-px 的下载量有多少?

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

@gainsight-px/react-native-gainsight-px 还在维护吗?

最新版本 1.12.4 发布于 2025/05/05(1.5 年前);至今共发布 6 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/06/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。