Scan your whole stack
Are you using @onekeyfe/react-native-ping?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v6.8.0-51
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
One-shot ICMP ping diagnostics for OneKey apps on iOS and Android.
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.
start() resolves the round-trip time in
milliseconds or rejects; there is no event stream to subscribe to.timeout in milliseconds and, on iOS, an ICMP
payloadSize in bytes.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.
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.
| 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.
| Capability | iOS | Android | Web |
|---|---|---|---|
| Send one ICMP echo and resolve RTT | ✅ | ✅ | — |
timeout option |
✅ | ✅ | — |
payloadSize option |
✅ | — | — |
| Continuous monitoring, retry or cancellation | — | — | — |
[!IMPORTANT] Platform defaults differ:
timeoutdefaults to1000ms on iOS and3000ms on Android, andpayloadSizeis only honoured on iOS. Passtimeoutexplicitly 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.
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.
Thank you again to everyone who contributes to react-native-ping 💙
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.
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.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.