Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-syan-image-picker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenSource
react-native-syan-image-picker
Commits
b1f06c98
Commit
b1f06c98
authored
Apr 25, 2019
by
少言
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change 优化安卓base64
parent
98e93870
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
119 deletions
+120
-119
RNSyanImagePickerModule.java
...src/main/java/com/syanpicker/RNSyanImagePickerModule.java
+117
-118
index.js
index.js
+2
-0
package.json
package.json
+1
-1
No files found.
android/src/main/java/com/syanpicker/RNSyanImagePickerModule.java
View file @
b1f06c98
This diff is collapsed.
Click to expand it.
index.js
View file @
b1f06c98
...
...
@@ -21,6 +21,8 @@ const defaultOptions = {
circleCropRadius
:
~~
(
width
/
4
),
// 圆形裁剪半径,默认屏幕宽度一半
showCropFrame
:
true
,
// 是否显示裁剪区域,默认true
showCropGrid
:
false
,
// 是否隐藏裁剪区域网格,默认false
compress
:
true
,
minimumCompressSize
:
100
,
// 小于100kb的图片不压缩
quality
:
90
,
// 压缩质量
enableBase64
:
false
,
// 是否返回base64编码,默认不返回
allowPickingOriginalPhoto
:
false
,
...
...
package.json
View file @
b1f06c98
{
"name"
:
"react-native-syan-image-picker"
,
"version"
:
"0.3.
4
"
,
"version"
:
"0.3.
5
"
,
"description"
:
"React-Native 多图片选择 支持裁剪 压缩"
,
"main"
:
"index.js"
,
"scripts"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment