diff --git a/packages/block-library/src/embed/edit.native.js b/packages/block-library/src/embed/edit.native.js index 40a41b833340a7..4a1be965212974 100644 --- a/packages/block-library/src/embed/edit.native.js +++ b/packages/block-library/src/embed/edit.native.js @@ -28,12 +28,7 @@ import { View } from '@wordpress/primitives'; const EmbedEdit = ( props ) => { const { - attributes: { - providerNameSlug, - previewable, - responsive, - url: attributesUrl, - }, + attributes: { providerNameSlug, responsive, url: attributesUrl }, attributes, isSelected, onReplace, @@ -191,8 +186,6 @@ const EmbedEdit = ( props ) => { insertBlocksAfter={ insertBlocksAfter } isSelected={ isSelected } label={ title } - preview={ preview } - previewable={ previewable } url={ url } /> diff --git a/packages/block-library/src/embed/embed-preview.native.js b/packages/block-library/src/embed/embed-preview.native.js index 6d9b5b75300638..657bd0379761ef 100644 --- a/packages/block-library/src/embed/embed-preview.native.js +++ b/packages/block-library/src/embed/embed-preview.native.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import { TouchableWithoutFeedback, Image } from 'react-native'; +import { TouchableWithoutFeedback } from 'react-native'; import { isEmpty } from 'lodash'; /** @@ -17,7 +17,6 @@ import { useState } from '@wordpress/element'; * Internal dependencies */ import EmbedNoPreview from './embed-no-preview'; -import styles from './styles.scss'; const EmbedPreview = ( { clientId, @@ -27,8 +26,6 @@ const EmbedPreview = ( { label, onBlur, onFocus, - preview, - previewable, } ) => { const [ isCaptionSelected, setIsCaptionSelected ] = useState( false ); @@ -56,13 +53,6 @@ const EmbedPreview = ( { } } - const cannotShowThumbnail = - ! previewable || - ! preview || - ! preview.thumbnail_url?.length || - ! preview.height || - ! preview.width; - return ( - { cannotShowThumbnail ? ( - setIsCaptionSelected( false ) } - /> - ) : ( - - ) } + setIsCaptionSelected( false ) } + /> { audio, reusableBlock, search, - devOnly( embed ), + embed, ].forEach( registerBlock ); registerBlockVariations( socialLink );