Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@hxa-rn/react-native-select-contact

Latest version: v1.6.5

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: gcw_rfdv8k05, m0_46581534, ngy_12, ruiantang, ryanzhu0, weixin_53568707, wsx18391025772, xdxs, xu_jianguo
4 Versions
303 Downloads

Scan summary

@hxa-rn/react-native-select-contact was last scanned on 26 Nov 2026 at version 1.6.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest 2 were published within 3 days (24–26 Nov 2026).
  • Findings: No rules fired in version 1.6.5.
  • Downloads: 303 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.6.5 LATEST 26 Nov 2026 No rules fired
1.6.4 24 Nov 2026 No rules fired
1.6.3 19 Nov 2026 1 rule fired
0.0.0-stage 19 Nov 2026 Not shown

No rules fired in 1.6.5

Findings

Findings for v1.6.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.6.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

react-native-select-contact

本项目基于 streem/react-native-select-contact 开发。如果在使用过程中有任何问题,可以在 GitCode Issues 提交 Issue,会及时跟进。

项目介绍

本库为 React Native 应用提供系统联系人单选,还可在所选联系人的电话、邮箱或邮址中选取一项。HarmonyOS 侧通过 RNOH 和 ArkUI 承载系统选择器及条目面板,保留四个业务方法和八个 TypeScript 类型。

上游 npm 版本为 1.6.3,源码基线为 48850d5793361445fea1b2847a0604aed50cfd17。上游标签 v1.6.3 指向 8632e3459ad318f0a8572282243bfb54f2cd4d11。鸿蒙 npm 发布版本为 1.6.5,HAR 保持其原生模块版本。

集成指南

以下步骤适用于已接入 RNOH 的 React Native 宿主。随库示例使用 React 18.2.0、React Native 0.72.5 和 RNOH 0.72.139。

1. 安装 JS 依赖

在宿主 React Native 工程根目录执行以下命令。

npm install @hxa-rn/react-native-select-contact@1.6.5 --save-exact --legacy-peer-deps

宿主的 metro.config.js 需合并 RNOH 的 createHarmonyMetroConfig。示例通过该配置将 react-native-select-contact 映射到鸿蒙 npm 包,业务代码可继续使用上游导入名。参照示例 Metro 配置。

2. 生成鸿蒙侧 JS Bundle

完成业务页面和 AppRegistry 注册后,在宿主 React Native 工程根目录执行以下命令。

npx react-native bundle-harmony --dev false --bundle-output harmony/entry/src/main/resources/rawfile/bundle.harmony.js
3. 接入鸿蒙原生模块

将以下依赖合入宿主的 harmony/entry/oh-package.json5。依赖键使用原生 HAR 包名,路径相对于 entry/。

{
  "dependencies": {
    "@rnoh/react-native-openharmony": "file:../../node_modules/@react-native-oh/react-native-harmony/react_native_openharmony_release.har",
    "@oh-rn/react-native-select-contact": "file:../../node_modules/@hxa-rn/react-native-select-contact/harmony/rn_select_contact.har"
  }
}

在 harmony/oh-package.json5 的 overrides 中,为两个依赖指定与 entry 中相同的 HAR。根文件中的路径相对于 harmony/ 目录。参照示例根依赖配置。

从 npm 安装 1.6.5 后,用 DevEco Studio 同步鸿蒙工程。联系人 npm 包只包含业务 HAR;宿主 RNOH 框架 HAR 由 @react-native-oh/react-native-harmony 提供。

4. 注册 RNPackage

按示例在 harmony/hvigorfile.ts 中启用 RNOH 自动链接,并在宿主 RNPackagesFactory.ets 的 createRNPackages 中使用生成的 createRNOHPackages(ctx)。构建时确认自动链接识别了 @hxa-rn/react-native-select-contact。生成的 ETS 和 C++ 工厂应分别注册 RNSelectContactPackage 和 rnoh::RNSelectContactPackage,CMake 应链接 rn_select_contact。参照示例包工厂。

5. 接入 Bundle Provider

在宿主的 RNApp 中传入 createRNPackages,通过 ResourceJSBundleProvider 加载第 2 步生成的 bundle.harmony.js。appKey 应与 AppRegistry.registerComponent 的注册名一致。两个示例均使用 AwesomeProject,可参照示例 Index.ets和JS 入口。

6. 检查鸿蒙 SDK 版本

两个示例的 harmony/build-profile.json5 均使用 HarmonyOS 作为 runtimeOS,兼容 SDK 为 5.1.0(18),目标 SDK 为 6.0.1(21)。

7. 编译、安装、启动

打开宿主的 harmony/,同步并配置签名后,选择 entry 模块和目标设备运行。构建后检查 HAP 包含 resources/rawfile/bundle.harmony.js 和 libs/<ABI>/librn_select_contact.so。改动 JS 后重新生成 Bundle,再编译 HAP。

使用说明

选择联系人与字段
import {
  selectContact,
  selectContactPhone,
  selectContactEmail,
  selectContactPostalAddress,
} from 'react-native-select-contact';

const contact = await selectContact();
const phone = await selectContactPhone();
const email = await selectContactEmail();
const address = await selectContactPostalAddress();

打开系统选择器后,由用户选中并确认联系人。若联系人有多个同类条目,组合方法打开二级面板,返回原联系人和所选条目。单条目直接返回。取消或集合为空时返回 null,真实服务异常经 Promise 拒绝返回。

接口文档

公开方法 参数 返回值
selectContact textOptions?: TextOptions Promise<Contact \| null>
selectContactPhone textOptions?: TextOptions Promise<ContactPhoneSelection \| null>
selectContactEmail textOptions?: TextOptions Promise<ContactEmailSelection \| null>
selectContactPostalAddress textOptions?: TextOptions Promise<ContactPostalAddressSelection \| null>

省略参数时使用完整默认文案对象。传入显式对象时按对象内容访问文案。文案设置覆盖二级面板及缺项提示,系统联系人选择器使用固定系统文案。公开方法和类型以本节接口表为准。

快速验证(运行 Example)

前置条件
依赖 版本要求
Node.js 20 及以上,以两个示例的 engines 为准
DevEco Studio / HarmonyOS SDK 支持目标 SDK 6.0.1(21),工程兼容 SDK 为 5.1.0(18)
Windows 路径 建议使用较短的仓库目录
设备数据 准备一条含电话、邮箱和邮址的测试联系人
运行步骤

1. 克隆仓库

git clone -b br_rnoh0.72 https://gitcode.com/hxa-rn/react-native-select-contact.git
cd react-native-select-contact

在 Windows 上可在 git clone 命令末尾指定短目录,例如 C:\rsc,再进入该目录。

2. 进入 example 目录,安装依赖

cd example
npm install --legacy-peer-deps

两个示例均安装 npm 发布包 @hxa-rn/react-native-select-contact@1.6.5。此前的 1.6.4 包含重复框架 HAR,建议升级至 1.6.5。

3. 生成 JS Bundle

npm run dev

产物位于当前示例目录下的 harmony/entry/src/main/resources/rawfile/bundle.harmony.js。修改 JS 后,重新生成 Bundle 再编译 HAP。

4. 用 DevEco Studio 打开鸿蒙工程

  • 从仓库根目录打开 example/harmony。示例已配置 HAR 依赖和 RNOH 自动链接。
  • 首次运行时,在 File → Project Structure → Signing Configs 中配置签名。可勾选 Automatically generate signature,点击 Apply 后同步工程。
  • 等待 Sync 完成。

5. 编译并运行 HAP

选择 entry 模块和目标设备,点击 Run。在普通示例中依次验证联系人、电话、邮箱和邮址选择。选中测试联系人后,核对页面返回的字段。

验证自动化示例时,将第 2 步的目录换成 example_auto,第 4 步打开 example_auto/harmony。两个示例共用应用 ID com.example.react_native_select_contact。在同一台设备上,使用相同签名安装会相互覆盖,签名不同时可能安装失败。

常见问题
  • 自动链接日志显示 [skip] @hxa-rn/react-native-select-contact。确认安装的是 1.6.5,并检查联系人 npm 包的 harmony/ 目录是否只有一份业务 HAR,然后重新同步和构建。
  • 找不到 rn_select_contact.har。核对 node_modules/@hxa-rn/react-native-select-contact/harmony/rn_select_contact.har,以及鸿蒙工程根目录和 entry 模块中各自的相对路径。
  • Windows 终端的 ohpm 命令提示 BATCH RECURSION。用 DevEco Studio 的 Sync 同步工程。
  • 启动时报缺少 SelectContact 原生模块。检查 HAP 是否包含 librn_select_contact.so,并核对自动生成的 C++ 和 ETS 工厂是否注册了 RNSelectContactPackage。
  • 选择器没有可用条目。确认系统联系人里有测试数据,且被选中的联系人包含当前要验证的电话、邮箱或邮址。
  • Ninja 创建 .rsp 文件失败。查看构建日志。如果日志指向 Windows 路径过长,将工程放到较短的目录并清理对应构建缓存后重试。

约束与限制

兼容性

项 版本 / 说明
React Native / React React Native 0.72.5、React 18.2.0
RNOH 0.72.139
HarmonyOS SDK compatibleSdkVersion 5.1.0(18),targetSdkVersion 6.0.1(21)
工程模型 RNOH TurboModule + HarmonyOS HAR
支持设备类型 HAR 声明 default、tablet、2in1;Example 面向 phone
上游形态 React Native 联系人选择原生模块
鸿蒙侧形态 npm 包 @hxa-rn/react-native-select-contact + HarmonyOS HAR

权限

本库通过系统联系人选择器读取用户主动选择的联系人,宿主无需申请 READ_CONTACTS 或 WRITE_CONTACTS 权限。本库不主动上传或持久化联系人数据。

功能约束

  • 系统交互:宿主需使用有效的前台 UI 上下文。系统选择器打开期间,重复打开会收到错误。
  • 数据边界:库读取用户当前选中的联系人。邮址自由文本可保留在显示地址中,只有可确认的地区码才填入 isoCountryCode。

开源 License

本库沿用 MIT 许可证,详见 仓根 LICENSE 和 上游许可文本。

问题反馈渠道

如果在使用过程中遇到任何问题,欢迎在 GitCode Issues 提交 Issue,我们会及时跟进。

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @hxa-rn/react-native-select-contact

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229