Simplify `includeBase64` (#918)
If `image.data` is already base64 encoded string, why do we need this wrapper? The proposed change worked for me on ios and android.
This commit is contained in:
parent
c188889b12
commit
e50f7dd995
|
@ -115,7 +115,7 @@ ImagePicker.clean().then(() => {
|
|||
| height | number | Height of result image when used with `cropping` option |
|
||||
| multiple | bool (default false) | Enable or disable multiple image selection |
|
||||
| writeTempFile (ios only) | bool (default true) | When set to false, does not write temporary files for the selected images. This is useful to improve performance when you are retrieving file contents with the `includeBase64` option and don't need to read files from disk. |
|
||||
| includeBase64 | bool (default false) | When set to true, the image file content will be available as a base64-encoded string in the `data` property. Hint: To use this string as an image source, use it like: ``<Image source={{uri: `data:${image.mime};base64,${(new Buffer(image.data)).toString('base64')}`}} />`` |
|
||||
| includeBase64 | bool (default false) | When set to true, the image file content will be available as a base64-encoded string in the `data` property. Hint: To use this string as an image source, use it like: ``<Image source={{uri: `data:${image.mime};base64,${image.data}`}} />`` |
|
||||
| includeExif | bool (default false) | Include image exif data in the response |
|
||||
| avoidEmptySpaceAroundImage | bool (default true) | When set to true, the image will always fill the mask space. |
|
||||
| cropperActiveWidgetColor (android only) | string (default `"#424242"`) | When cropping image, determines ActiveWidget color. |
|
||||
|
|
Loading…
Reference in New Issue