Scan your whole stack
From OX Research Newsroom
Are you using @onekeyfe/react-native-native-overlay?
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-native-overlay 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.
Overlay hosts that draw above the app on iOS, Android and Web while keeping the caller's React subtree and hit testing intact.
Owns where an overlay is drawn, which overlay is on top and how it enters and
exits. Levels are fixed (modal, hardware, secure, toast, lock,
debug), each entry picks a global or page scope and a lane strategy, and
the native host reparents the caller's content so React context, refs and
measureInWindow keep working. Sheet, center, fullscreen, toast and anchored
presentations are available; the application owns the content and business UI.
stack, queue and replace apply per
(scope, host, level) lane, with priority, replaceKey and de-duplicated ids.OverlayPageHost as the last child of a
root route lets page overlays cover native headers and the tab bar.yarn add @onekeyfe/react-native-native-overlay
The native hosts are React Native Fabric codegen components, not Nitro views.
Install the app's iOS pods and rebuild the native application after adding the
package. Web additionally needs react-dom; it is declared as an optional peer
dependency.
import { useState } from 'react';
import {
OverlayPageHost,
OverlayView,
} from '@onekeyfe/react-native-native-overlay';
function MainRoute() {
const [visible, setVisible] = useState(false);
return (
<>
{screen}
<OverlayView
visible={visible}
presentation="sheet"
level="modal"
sheet={{ dismissOnPanDown: true, cornerRadius: 24 }}
onRequestDismiss={() => setVisible(false)}
>
{content}
</OverlayView>
{/* Last child of the root route, after its navigator. */}
<OverlayPageHost hostKey="main" />
</>
);
}
The application still owns visible and the content. scope="page" resolves
hostKey/ownerKey from the nearest OverlayPageHostScope and
OverlayPageOwnerScope providers.
| Export | Shape | Description | Platforms |
|---|---|---|---|
OverlayView |
component | Declarative overlay: visible, scope, level, strategy, priority, replaceKey, presentation, sheet, animation, backdrop, blocking, keepContentMounted, statusBarStyle, contentSize, dismiss/present callbacks. |
iOS, Android, Web |
OverlayPageHost |
component | Renders the page-scope overlays of one root route from hostKey. |
iOS, Android, Web |
OverlayPageHostScope, OverlayPageOwnerScope |
providers | Supply hostKey per root route and ownerKey per page. |
iOS, Android, Web |
overlayStore |
store | Imperative request, dismiss, finalize, reopen, dismissAll, setPageVisible, removePage, resolveBack. |
iOS, Android, Web |
OverlayRequestError |
error class | Thrown for invalid requests such as a page entry without keys. | iOS, Android, Web |
OVERLAY_LEVELS, OVERLAY_LEVEL_ORDER |
constants | The level list and their numeric order. | iOS, Android, Web |
resolveOverlayAnimation, OVERLAY_MOTION_PRESETS, NATIVE_MOTION_PRESETS, WEB_MOTION_PRESETS |
helpers | Resolve animation configs per platform. | iOS, Android, Web |
presentation accepts sheet, center, fullscreen, toast and anchored.
strategy accepts stack, queue and replace. See
docs/SPEC.md for the ownership model, platform differences and
acceptance record.
| Capability | iOS | Android | Web |
|---|---|---|---|
| Global overlays and level ordering | ✅ | ✅ | ✅ |
Page scope via OverlayPageHost |
✅ | ✅ | ✅ |
| Sheet presentation | ✅ | ✅ | ✅ |
| Keyboard avoidance | ✅ | ✅ | ✅ |
windowOffsetRequest for modal-relative anchors |
✅ | — | — |
contentSize for pre-rotation layout |
✅ | ✅ | — |
| Status bar styling | ✅ | ✅ | — |
[!IMPORTANT] Page-scope entries need both
hostKeyandownerKey. A declarativeOverlayViewwaits until the nearest scope providers supply them, but a directoverlayStore.requestwith a missing key throwsOverlayRequestError.
[!NOTE] The
windowOffsetRequest/onWindowOffsetandcontentSizeprops are native-only layout aids; they do nothing on Web. On Web the overlay portals into a level layer and relies onreact-dom.
MIT. See LICENSE.
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.