Skip to content

Commit

Permalink
[RNMobile] Enable edit button over Image blocks for Android (#21165)
Browse files Browse the repository at this point in the history
* Remove showMediaEditorButton references

To enable "Edit" image option in Android as well

* Fix lint issue
  • Loading branch information
ashiagr authored Mar 30, 2020
1 parent 4ed16bb commit 0b3fa53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
requestImageFailedRetryDialog,
requestImageUploadCancelDialog,
requestImageFullscreenPreview,
showMediaEditorButton,
} from 'react-native-gutenberg-bridge';
import { isEmpty, get, find, map } from 'lodash';

Expand Down Expand Up @@ -606,8 +605,7 @@ export class ImageEdit extends React.Component {
! isUploadInProgress &&
! isUploadFailed &&
finalWidth &&
finalHeight &&
showMediaEditorButton && (
finalHeight && (
<MediaEdit
allowedTypes={ [
MEDIA_TYPE_IMAGE,
Expand Down

0 comments on commit 0b3fa53

Please sign in to comment.