diff --git a/packages/block-editor/src/components/caption/index.native.js b/packages/block-editor/src/components/caption/index.native.js index 68e965524c8b8..664ec75da9411 100644 --- a/packages/block-editor/src/components/caption/index.native.js +++ b/packages/block-editor/src/components/caption/index.native.js @@ -29,7 +29,7 @@ const Caption = ( { accessible, accessibilityLabel, onBlur, onChange, onFocus, i fontSize={ 14 } underlineColorAndroid="transparent" textAlign={ 'center' } - tagName={ '' } + tagName={ 'p' } /> ); diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index cd99911326c61..af10c47fdfa3e 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -136,7 +136,7 @@ export class ImageEdit extends React.Component { componentDidUpdate( previousProps ) { if ( ! previousProps.image && this.props.image ) { const { image, attributes } = this.props; - const url = getUrlForSlug( image, attributes ); + const url = getUrlForSlug( image, attributes ) || image.source_url; this.props.setAttributes( { url } ); } } diff --git a/packages/block-library/src/index.native.js b/packages/block-library/src/index.native.js index 98903cad72919..22e534fb2669e 100644 --- a/packages/block-library/src/index.native.js +++ b/packages/block-library/src/index.native.js @@ -150,8 +150,7 @@ export const registerCoreBlocks = () => { ( ( Platform.OS === 'ios' ) || ( !! __DEV__ ) ) ? preformatted : null, // eslint-disable-next-line no-undef !! __DEV__ ? group : null, - // eslint-disable-next-line no-undef - !! __DEV__ ? spacer : null, + spacer, ].forEach( registerBlock ); setDefaultBlockName( paragraph.name );