Gathering detailed insights and metrics for react-native-pick-img-crop1
Gathering detailed insights and metrics for react-native-pick-img-crop1
Gathering detailed insights and metrics for react-native-pick-img-crop1
Gathering detailed insights and metrics for react-native-pick-img-crop1
npm install react-native-pick-img-crop1
Typescript
Module System
Node Version
NPM Version
Java (76.51%)
Objective-C (22.94%)
JavaScript (0.48%)
Ruby (0.08%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Stars
49 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Jul 12, 2025
Latest Version
1.1.0
Package Id
react-native-pick-img-crop1@1.1.0
Unpacked Size
9.71 MB
Size
8.54 MB
File Count
377
NPM Version
8.19.2
Node Version
18.11.0
Published on
Jun 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
高新能实用的相册图片选择器,可以多张图片选择、裁剪、单张图片选择、拍照
目前此库正在开发中....
ios暂时不支持手动自定义裁剪,只支持批量后台裁剪(以传入裁剪的宽高的比例进行裁剪);可以多张图片选择,也可以单张图片选择
android可以基本使用,但Android和设计有一定差距,有兴趣的童靴可以先自己修改,代码可用
npm i --save react-native-pick-img-crop
react-native link react-native-pick-img-crop
将 pod 'RNPickImgCrop', :path => '../node_modules/react-native-pick-img-crop' 拷贝进Podfile即可;
### `settings.gradle`
```gradle
include ':react-native-pick-img-crop'
project(':react-native-pick-img-crop').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pick-img-crop/android')
```
### `build.gradle`
```gradle
dependencies {
compile project(':react-native-pick-img-crop')
}
```
###`MainApplication.java`
```java
import com.luck.picture.lib.PhotoCropPickerPackage;
public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new PhotoCropPickerPackage()
);
}
}
```
1import PickImgCroper from "react-native-pick-img-crop"; 2PickImgCroper.openPicker({ 3 includeBase64:false,//是否包含Base64编码 only android 4 isCamera:true,//是否显示拍照按钮 默认true,显示 only android 5 cropping:false,//bool 可不传,//是否剪辑图片 默认是false;flase时打开大图,true时进入裁剪控件 6 multiple:true,//bool 可不传,//是否图片多选 默认是false;多选时显示先后选中顺序,取消其中任意一个选中按顺序缩减,单选只显示1,选中另一个则取消上一个选中 7 maxCount:-1,//number 可不传,//最大可选数量,multiple为true此字段有效;不传或为-1时,选择数量不受限制 8 cropWidth:600,//number 可不传,//裁剪宽度 cropping为true并且cropWidth和cropHeight同时为正整数时有效,不传或为小于0时,以最短边为准进行居中裁剪 9 cropHeight:450,//number 可不传,//裁剪高度 cropping为true并且cropWidth和cropHeight同时为正整数时有效,不传或为小于0时,以最短边为准进行居中裁剪 10 }) 11.then(res=>{ 12 console.info("res",res) 13}); 14
欢迎提问交流;若有bug,请添加bug截图或代码片段,以便更快更好的解决问题。
欢迎大家一起交流
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More