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

@onekeyfe/react-native-ping

Latest version: v6.8.0-51

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: 1keyfe
5 Stars
10 Forks
292 Versions
35.3K Downloads
TypeScript Repo language

Scan summary

@onekeyfe/react-native-ping was last scanned on 28 Nov 2026 at version 6.8.0-51. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 292 versions; the latest 5 were published within 3 days (26–28 Nov 2026).
  • Findings: No rules fired in version 6.8.0-51.
  • Downloads: 35,263 downloads.

Versions

292 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.8.0-51 LATEST 28 Nov 2026 No rules fired
6.8.0-50 28 Nov 2026 No rules fired
6.8.0-49 27 Nov 2026 No rules fired
6.8.0-48 26 Nov 2026 Not shown
6.8.0-47 26 Nov 2026 Not shown

No rules fired in 6.8.0-51

Findings

Findings for v6.8.0-51. 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 6.8.0-51; other versions have their own rules, not their own score.

README

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

@onekeyfe/react-native-ping

One-shot ICMP ping diagnostics for OneKey apps on iOS and Android.

npm license iOS Android TurboModule

A TurboModule that sends a single ICMP echo to a host and resolves the round-trip time in milliseconds. The caller supplies the address and optional timeout/payload settings; the module does not retry, cancel, monitor or report intermediate events. iOS uses the vendored GBPing, Android uses InetAddress.isReachable. There is no Web implementation.

Features

  • One call, one answer — start() resolves the round-trip time in milliseconds or rejects; there is no event stream to subscribe to.
  • Tunable attempt — a timeout in milliseconds and, on iOS, an ICMP payloadSize in bytes.
  • Off the JS thread — iOS pings on a serial queue, Android on its own background thread.
  • Explicit failure, no retained state — unreachable hosts and timeouts reject the promise, and there is nothing to stop or dispose afterwards.

Installation

yarn add @onekeyfe/react-native-ping

Install the app's iOS pods and rebuild the native binary; Android links through autolinking. The TurboModule is resolved at import time, so a JavaScript-only install fails at import instead of at the first call. On Android the host check runs through InetAddress, so the application must declare the normal INTERNET permission:

<uses-permission android:name="android.permission.INTERNET" />

No additional iOS entitlement is required.

Usage

import { Ping } from '@onekeyfe/react-native-ping';

// `option` is required by the bridge signature; pass {} for defaults.
const rttMs = await Ping.start('1.1.1.1', { timeout: 3000 });

Keep each result associated with the address and network conditions of that call. Retry policy, cancellation of the surrounding workflow and presentation of the result belong to the application.

API

Export Signature Platforms Description
Ping.start (ipAddress: string, option: { timeout?: number; payloadSize?: number }) => Promise<number> iOS, Android Sends one ICMP echo; resolves round-trip time in milliseconds.

option fields:

Field Type Default Description
timeout number iOS 1000, Android 3000 Maximum wait in milliseconds; on expiry the promise rejects.
payloadSize number iOS 56 ICMP payload size in bytes; ignored on Android.

PingSpec is the exported TypeScript interface. The wrapper is src/index.tsx; the bridge is src/NativePing.ts.

Platform support

Capability iOS Android Web
Send one ICMP echo and resolve RTT ✅ ✅ —
timeout option ✅ ✅ —
payloadSize option ✅ — —
Continuous monitoring, retry or cancellation — — —

Caveats

[!IMPORTANT] Platform defaults differ: timeout defaults to 1000 ms on iOS and 3000 ms on Android, and payloadSize is only honoured on iOS. Pass timeout explicitly when behaviour must match across platforms.

[!NOTE] Android uses InetAddress.isReachable, which may fall back to a TCP echo on port 7 when ICMP is blocked. A successful Android result therefore does not prove that ICMP works, and its timing is not comparable with iOS ICMP RTT.

[!WARNING] Importing the package resolves the native module eagerly; without the rebuilt pods or Android native build, the import throws before any call is made.

References

Upstream attribution

First, a sincere thank-you to the react-native-ping maintainers for their excellent work 🙏

This package is built on, and inspired by, RoJoHub/react-native-ping.

Our original plan was to keep our customizations as patches on top of upstream react-native-ping.

As our product requirements evolved, the scope of those changes outgrew what we could reasonably maintain as an upstream patch set. We regret that we were unable to keep this work in patch form.

As the gap grew, we ultimately forked react-native-ping to keep development and delivery stable.

Upstream Project
  • Repository: RoJoHub/react-native-ping
  • The RoJoHub package manifest declares MIT; that repository does not provide a full MIT grant file. This limitation is retained in the package audit.
Notes
  • This fork includes OneKey-specific adaptations for our product requirements.
  • If you are looking for original behavior and full documentation, please refer to the upstream repository.

Thank you again to everyone who contributes to react-native-ping 💙

Bundled third-party notices

The ios/GBPing implementation derives from lmirosevic/GBPing and is covered by LICENSE.GBPing, the upstream Apache 2.0 license. Upstream attributes GBPing to Luka Mirosevic (2015); the retained ICMPHeader.h also names Goonbee (2012). OneKey's native integration contains local modifications. There is no upstream NOTICE file at that revision.

ios/LHNetwork/LHDefinition.h retains its Pomato (2019) source notice and matches the RoJoHub tree. The package manifest records MIT AND Apache-2.0 to distinguish the declared primary license from the known vendored license. No missing upstream MIT copyright or full grant is fabricated.

License

The package manifest declares MIT AND Apache-2.0: the wrapper is MIT, and the vendored iOS GBPing sources are Apache-2.0, retained in LICENSE.GBPing. This package ships no standalone LICENSE file; see the npm page for the published manifest.

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 @onekeyfe/react-native-ping

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

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229