React-native-image-crop-picker: How to save image on camera roll on iOS and Android?

Created on 4 Sep 2018  路  2Comments  路  Source: ivpusic/react-native-image-crop-picker

I appreciate your help.

I am trying to save my photo taken in the roll camera of ios and android, but when I take the photo it is only stored in the temporary array but from the photo viewer it can not be visualized, how can I save it directly in the ios roll camera and android? If anyone can help me thank you very much

` pickSingleWithCamera(cropping) {
ImagePicker.openCamera({
cropping: cropping,
width: 500,
height: 500,
includeExif: true,
writeTempFile: true,
includeBase64: true,
}).then(image => {
console.log('received muestra', image.path);
this.setState({
image: {uri: image.path, width: image.width, height: image.height},
images: null
});

}).catch(e => alert(e));

}`

Most helpful comment

@venkatmithunk the docs give no information on resolving permissions for Android, only iOS. Still looking for some help figuring this one out

All 2 comments

@venkatmithunk the docs give no information on resolving permissions for Android, only iOS. Still looking for some help figuring this one out

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Martian2Lee picture Martian2Lee  路  3Comments

JodiWarren picture JodiWarren  路  3Comments

equesteo picture equesteo  路  3Comments

sergiulucaci picture sergiulucaci  路  3Comments

aterribili picture aterribili  路  3Comments