mirror of
https://github.com/status-im/react-native-image-resizer.git
synced 2025-01-28 23:45:10 +00:00
Update example according to latest changes in createResizedImage interface
This commit is contained in:
parent
975d9097d3
commit
15ea06d765
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user