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
bf222ee2
Commit
bf222ee2
authored
Oct 17, 2017
by
Syan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除多余的代码
parent
8ab1bdb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
28 deletions
+13
-28
README.md
README.md
+9
-1
index.js
index.js
+0
-25
package.json
package.json
+4
-2
No files found.
README.md
View file @
bf222ee2
...
...
@@ -74,4 +74,12 @@
compile project(':react-native-syan-image-picker')
```
\ No newline at end of file
## 运行示例
[ImagePickerExample](https://github.com/syanbo/ImagePickerExample)
```
import ImagePicker from 'react-native-syan-image-picker'
ImagePicker.showImagePicker(options, (err, photos) => {})
```
\ No newline at end of file
index.js
View file @
bf222ee2
...
...
@@ -26,30 +26,5 @@ export default {
return
RNSyanImagePicker
.
showImagePicker
(
optionObj
,
bc
)
// if (Platform.OS == 'android') {
//
// const optionObj = {
// imageCount: 1,
// isCamera: true,
// isCrop: false,
// CropW: 100,
// CropH: 100,
// isGif: false,
// showCropCircle: false,
// showCropFrame: true,
// showCropGrid: false,
// ...options
// }
//
// return RNSyanImagePicker.showImagePicker(optionObj)
//
// } else {
// let x = (width - CropWidth) / 2;
// let y = (height - CropHeight) / 2;
// return RNSyanImagePicker.show(count, Crop, x, y, CropWidth, CropHeight, SelectVideo).then((result) => {
// return result;
// });
// }
}
};
package.json
View file @
bf222ee2
{
"name"
:
"react-native-syan-image-picker"
,
"version"
:
"0.0.
1
"
,
"version"
:
"0.0.
3
"
,
"description"
:
""
,
"main"
:
"index.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"keywords"
:
[
"react-native"
"react-native"
,
"image"
,
"image-picker"
],
"author"
:
""
,
"license"
:
""
...
...
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