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-image-crop-picker

Latest version: v6.8.0-51

Overview

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

Scan summary

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

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

Versions

231 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-image-crop-picker

Pick one photo and crop it with one API on iOS, Android and the web — without photo-library permission.

npm license iOS Android Web Nitro Modules

A single-photo picker and cropper for OneKey, replacing the parts of react-native-image-crop-picker that OneKey uses: openPicker, openCropper, clean, cleanSingle and the E_* error codes. iOS picks with PHPickerViewController, Android with the system Photo Picker, and the browser with a file input, so no platform asks for photo-library permission. The cropper is a screen drawn by this package, identical on iOS and Android, with a DOM equivalent on the web. Photo saving and its authorization belong to @onekeyfe/react-native-photo-library; this package exposes no save API.

Features

  • No photo-library prompt — picking grants access only to the selected item, so a denied library permission can no longer break the picker.
  • One shared cropper — the same header, crop box, dimmed background, rotate control and footer on iOS and Android; the same layout on the web with zoom and keyboard input for mouse users.
  • Optional cropping or original bytes — cropping: true returns a JPEG at the requested size; preserveOriginal: true copies the selected representation untouched when cropping is off.
  • Explicit cleanup — results live in the module's temporary directory until the caller runs clean() or cleanSingle().
  • Typed failures — every rejection is an ImageCropPickerError with a stable E_* code.

Installation

yarn add @onekeyfe/react-native-image-crop-picker react-native-nitro-modules

Install the native peer packages this package links as well:

yarn add @onekeyfe/react-native-native-logger

To keep existing react-native-image-crop-picker imports working, install it under an npm alias: react-native-image-crop-picker@npm:@onekeyfe/react-native-image-crop-picker. Install the application's iOS pods and rebuild the native binary; the web entry needs no native code.

  • iOS: do not also install the TOCropViewController pod. This package compiles its own copy and duplicate classes clash at link time.
  • Android: uCrop is published only to JitPack, so add maven { url "https://www.jitpack.io" } to the app's allprojects.repositories.

Usage

import ImageCropPicker, {
  ImageCropPickerError,
} from '@onekeyfe/react-native-image-crop-picker';

try {
  const image = await ImageCropPicker.openPicker({
    width: 240,
    height: 240,
    cropping: true,
    includeBase64: true,
    compressImageQuality: 0.8,
  });
  // image.path is a file:// URI (blob: URL on the web).
} catch (error) {
  if (error instanceof ImageCropPickerError && error.code === 'E_PICKER_CANCELLED') {
    return;
  }
  throw error;
}

const cropped = await ImageCropPicker.openCropper({
  path: 'file:///path/to/image.jpg',
  width: 480,
  height: 800,
});

openCropper accepts file:// URIs, absolute paths, http(s):// URLs, data: URIs and, on Android, content:// URIs. Read or save a result before cleaning it; only one picker or cropper can be open per app.

API

Method Result Platforms Description
openPicker(options?) Promise<Image> iOS, Android, Web Picks one photo, optionally connected to the cropper.
openCropper({ path, ...options }) Promise<Image> iOS, Android, Web Crops an existing image and returns a JPEG.
clean() Promise<void> iOS, Android, Web Deletes every file this module wrote.
cleanSingle(path) Promise<void> iOS, Android, Web Deletes one file returned by this module.
ImageCropPickerError Error subclass with code iOS, Android, Web Rejection type for all operations.
Image { path, size, width, height, mime, data?, cropRect?, filename? } iOS, Android, Web Pick/crop result; data is base64 without a data: prefix.

Cropping uses width/height as both the target size and the aspect ratio; freeStyleCropEnabled lets the box keep its own ratio and fit inside that size. compressImageMaxWidth, compressImageMaxHeight and compressImageQuality apply after cropping. cropperAppearance, cropperToolbarTitle, cropperChooseText, cropperCancelText, cropperRotateButtonsHidden and showCropGuidelines style the cropper. See src/ReactNativeImageCropPicker.nitro.ts for every option and src/shared.ts for the full error-code list.

Platform support

Capability iOS Android Web
Pick one photo without library permission ✅ PHPicker ✅ Photo Picker ✅ file input
Interactive cropper ✅ ✅ ✅ DOM
preserveOriginal (byte-for-byte copy) ✅ ✅ ✅
Native Nitro module ✅ ✅ —
freeStyleCropEnabled ✅ ✅ —

Caveats

[!NOTE] Cancelling the cropper that openPicker opened returns to the photo picker on iOS but rejects with E_PICKER_CANCELLED on Android and the web. A second picker or cropper while one is open rejects with E_PICKER_IN_PROGRESS.

[!WARNING] On the web, freeStyleCropEnabled is not implemented, path is a blob: URL that clean() revokes, and http(s) sources for openCropper must allow CORS or the crop rejects with E_CANNOT_SAVE_IMAGE.

[!IMPORTANT] A picker result proves access to that one item only — never photo-library authorization. Results are temporary files owned by the caller; do not clean a file while a scan or save still reads it.

References

  • Package spec
  • Native interface
  • Example page
  • Changelog

License

MIT. See LICENSE. The vendored TOCropViewController in ios/TOCropViewController is MIT licensed by Tim Oliver; see its LICENSE.

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-image-crop-picker

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

Copy of Template Design OX Blog (2)
Research

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229