Scan your whole stack
Are you using @onekeyfe/react-native-image-crop-picker?
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-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.
| 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.
Pick one photo and crop it with one API on iOS, Android and the web — without photo-library permission.
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.
cropping: true returns a JPEG at
the requested size; preserveOriginal: true copies the selected
representation untouched when cropping is off.clean() or cleanSingle().ImageCropPickerError with a
stable E_* code.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.
TOCropViewController pod. This package
compiles its own copy and duplicate classes clash at link time.maven { url "https://www.jitpack.io" } to the app's allprojects.repositories.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.
| 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.
| 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 |
✅ | ✅ | — |
[!NOTE] Cancelling the cropper that
openPickeropened returns to the photo picker on iOS but rejects withE_PICKER_CANCELLEDon Android and the web. A second picker or cropper while one is open rejects withE_PICKER_IN_PROGRESS.
[!WARNING] On the web,
freeStyleCropEnabledis not implemented,pathis ablob:URL thatclean()revokes, andhttp(s)sources foropenCroppermust allow CORS or the crop rejects withE_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.
MIT. See LICENSE. The vendored TOCropViewController in
ios/TOCropViewController is MIT licensed by Tim Oliver; see its 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.