Socket
Socket
Sign inDemoInstall

react-native-letote-syan-image-picker

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

2

index.d.ts

@@ -18,2 +18,3 @@

compress: boolean,
compressFocusAlpha:boolean, //压缩png保留通明度
minimumCompressSize: number, // 小于100kb的图片不压缩

@@ -30,2 +31,3 @@ quality: number, // 压缩质量

MinSecond: number // 选择视频最小时长,默认是1秒
showSelectedIndex: boolean, // 是否显示序号, 默认不显示
}

@@ -32,0 +34,0 @@

4

index.js

@@ -28,2 +28,3 @@ import {

compress: true,
compressFocusAlpha:false, //压缩png保留通明度
minimumCompressSize: 100, // 小于100kb的图片不压缩

@@ -36,3 +37,4 @@ quality: 90, // 压缩质量

isWeChatStyle: false, // 是否是微信风格选择界面 Android Only
sortAscendingByModificationDate: true // 对照片排序,按修改时间升序,默认是YES。如果设置为NO,最新的照片会显示在最前面,内部的拍照按钮会排在第一个
sortAscendingByModificationDate: true, // 对照片排序,按修改时间升序,默认是YES。如果设置为NO,最新的照片会显示在最前面,内部的拍照按钮会排在第一个
showSelectedIndex: false, // 是否显示序号, 默认不显示
};

@@ -39,0 +41,0 @@

{
"name": "react-native-letote-syan-image-picker",
"version": "0.5.0",
"version": "0.6.0",
"description": "React-Native 多图片选择 支持裁剪 压缩",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -172,2 +172,4 @@

showCropGrid | bool | 是 | false | 是否隐藏裁剪区域网格
compress | bool | 是 | true | 是否开启压缩(不开启压缩部分图片属性无法获得
compressFocusAlpha | bool | 是 | false | 压缩时保留图片透明度(开启后png压缩后尺寸会变大但是透明度会保留
quality | int | 是 | 90 | 压缩质量(安卓无效,固定鲁班压缩)

@@ -179,5 +181,5 @@ minimumCompressSize | int | 是 | 100 | 小于100kb的图片不压缩(Android)

scaleEnabled | bool | 是 | true | 裁剪是否可放大缩小图片(Android)
showSelectedIndex | bool | 是 | false | 是否显示序号
## 返回结果说明

@@ -351,2 +353,6 @@ 以 `Callback` 形式调用时,返回的第一个参数为错误对象,第二个才是图片数组:

### 版本记录
- 0.4.10 新增showSelectedIndex参数,是否显示选中序号
## 帮助

@@ -353,0 +359,0 @@ 加入 React-Native QQ群 397885169

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc