Skip to content

Commit

Permalink
Update example according to latest changes in createResizedImage inte…
Browse files Browse the repository at this point in the history
…rface
  • Loading branch information
4ian committed Aug 17, 2017
1 parent 975d909 commit 15ea06d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 15ea06d

Please sign in to comment.