Skip to content

Commit

Permalink
using onImageQueryReattach (#13516)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzorz committed Jan 28, 2019
1 parent 028ab55 commit 93e6e95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
onMediaLibraryPressed,
onUploadMediaPressed,
onCapturePhotoPressed,
onImageQueryReattach,
} from 'react-native-gutenberg-bridge';

/**
Expand Down Expand Up @@ -44,6 +45,7 @@ export default class ImageEdit extends React.Component {

if ( attributes.id && ! isURL( attributes.url ) ) {
this.addMediaUploadListener();
onImageQueryReattach();
}
}

Expand Down

0 comments on commit 93e6e95

Please sign in to comment.