Update example according to latest changes in createResizedImage interface

This commit is contained in:
Florian Rival 2017-08-17 21:42:29 +02:00
parent 975d9097d3
commit 15ea06d765
1 changed files with 2 additions and 2 deletions

View File

@ -73,9 +73,9 @@ export default class ResizerExample extends Component {
resize() {
ImageResizer.createResizedImage(this.state.image.uri, 800, 600, 'JPEG', 80)
.then((resizedImageUri) => {
.then(({uri}) => {
this.setState({
resizedImageUri,
resizedImageUri: uri,
});
}).catch((err) => {
console.log(err);