react-native-new-image-picker
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -47,3 +47,3 @@ import { | ||
.then(res => { | ||
if (res.length == 1) { | ||
if (!options.multiple&&res.length==1) { | ||
return res[0] | ||
@@ -66,4 +66,9 @@ } | ||
}; | ||
RNImagePicker.openCamera(Platform.OS == 'ios' ? options : optionObj, callback) | ||
RNImagePicker.openCamera(Platform.OS == 'ios' ? options : optionObj, callback).then(res=>{ | ||
if(res.length==1){ | ||
return res[0] | ||
} | ||
return res | ||
}) | ||
}, | ||
}; |
{ | ||
"name": "react-native-new-image-picker", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "react-native-new-image-picker", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
34540476
53263