diff --git a/packages/block-editor/src/components/block-list/index.native.js b/packages/block-editor/src/components/block-list/index.native.js index 07815c1391302..1642b5bf7d0fa 100644 --- a/packages/block-editor/src/components/block-list/index.native.js +++ b/packages/block-editor/src/components/block-list/index.native.js @@ -32,6 +32,7 @@ export class BlockList extends Component { super( ...arguments ); this.renderItem = this.renderItem.bind( this ); + this.renderAddBlockSeparator = this.renderAddBlockSeparator.bind( this ); this.shouldFlatListPreventAutomaticScroll = this.shouldFlatListPreventAutomaticScroll.bind( this ); this.renderDefaultBlockAppender = this.renderDefaultBlockAppender.bind( this ); this.onBlockTypeSelected = this.onBlockTypeSelected.bind( this ); @@ -213,8 +214,10 @@ export class BlockList extends Component { } renderItem( { item: clientId } ) { + const shouldReverseContent = this.isReplaceable( this.props.selectedBlock ); + return ( - + - { this.state.blockTypePickerVisible && this.props.isBlockSelected( clientId ) && ( - - - { __( 'ADD BLOCK HERE' ) } - - - ) } + { this.state.blockTypePickerVisible && this.props.isBlockSelected( clientId ) && this.renderAddBlockSeparator() } ); } + renderAddBlockSeparator() { + return ( + + + { __( 'ADD BLOCK HERE' ) } + + + ); + } + renderHTML() { return ( diff --git a/packages/components/src/mobile/readable-content-view/index.native.js b/packages/components/src/mobile/readable-content-view/index.native.js index bc550f93de926..dbeb172ab0434 100644 --- a/packages/components/src/mobile/readable-content-view/index.native.js +++ b/packages/components/src/mobile/readable-content-view/index.native.js @@ -8,9 +8,9 @@ import { View, Dimensions } from 'react-native'; */ import styles from './style.scss'; -const ReadableContentView = ( { children } ) => ( +const ReadableContentView = ( { reversed, children } ) => ( - + { children } diff --git a/packages/components/src/mobile/readable-content-view/style.native.scss b/packages/components/src/mobile/readable-content-view/style.native.scss index 611d4054a470f..61097fc4a2bbd 100644 --- a/packages/components/src/mobile/readable-content-view/style.native.scss +++ b/packages/components/src/mobile/readable-content-view/style.native.scss @@ -6,3 +6,9 @@ width: 100%; max-width: 580; } + +.reversedCenteredContent { + flex-direction: column-reverse; + width: 100%; + max-width: 580; +}