Commit bf222ee2 authored by Syan's avatar Syan

删除多余的代码

parent 8ab1bdb9
...@@ -74,4 +74,12 @@ ...@@ -74,4 +74,12 @@
compile project(':react-native-syan-image-picker') compile project(':react-native-syan-image-picker')
``` ```
## 运行示例
[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
...@@ -26,30 +26,5 @@ export default { ...@@ -26,30 +26,5 @@ export default {
return RNSyanImagePicker.showImagePicker(optionObj, bc) 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;
// });
// }
} }
}; };
{ {
"name": "react-native-syan-image-picker", "name": "react-native-syan-image-picker",
"version": "0.0.1", "version": "0.0.3",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"keywords": [ "keywords": [
"react-native" "react-native",
"image",
"image-picker"
], ],
"author": "", "author": "",
"license": "" "license": ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment