File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ export var takePicture = function (options?): Promise<any> {
44
44
appModule . android . onActivityResult = previousResult ;
45
45
46
46
if ( requestCode === REQUEST_IMAGE_CAPTURE && resultCode === android . app . Activity . RESULT_OK ) {
47
-
47
+ var imageSource : typeof imageSourceModule = require ( "image-source" ) ;
48
48
if ( saveToGallery ) {
49
- resolve ( picturePath ) ;
49
+ resolve ( { image : imageSource . fromFile ( picturePath ) , path : picturePath } ) ;
50
50
} else {
51
51
var options = new android . graphics . BitmapFactory . Options ( ) ;
52
52
options . inJustDecodeBounds = true ;
@@ -89,8 +89,7 @@ export var takePicture = function (options?): Promise<any> {
89
89
break ;
90
90
}
91
91
92
- var imageSource : typeof imageSourceModule = require ( "image-source" ) ;
93
- resolve ( imageSource . fromNativeSource ( scaledSizeImage ) , picturePath ) ;
92
+ resolve ( { image :imageSource . fromNativeSource ( scaledSizeImage ) , path :picturePath } ) ;
94
93
95
94
}
96
95
}
You can’t perform that action at this time.
0 commit comments