mirror of
https://github.com/status-im/react-native-image-crop-picker.git
synced 2025-02-23 10:58:16 +00:00
dynamic base64 mime type when returning image
This commit is contained in:
parent
77f71bcdad
commit
e53cad9eaa
@ -39,7 +39,7 @@ export default class App extends Component {
|
||||
}).then(image => {
|
||||
console.log('received image', image);
|
||||
this.setState({
|
||||
image: {uri: 'data:image/png;base64,'+ image.data, width: image.width, height: image.height},
|
||||
image: {uri: `data:${image.mime};base64,`+ image.data, width: image.width, height: image.height},
|
||||
images: null
|
||||
});
|
||||
}).catch(e => {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user