diff --git a/packages/block-editor/src/components/inner-blocks/index.native.js b/packages/block-editor/src/components/inner-blocks/index.native.js index e1b87087fcbebb..27bfec37adaf5a 100644 --- a/packages/block-editor/src/components/inner-blocks/index.native.js +++ b/packages/block-editor/src/components/inner-blocks/index.native.js @@ -2,7 +2,10 @@ * WordPress dependencies */ import { useSelect } from '@wordpress/data'; -import { getBlockType, withBlockContentContext } from '@wordpress/blocks'; +import { + getBlockType, + __unstableGetInnerBlocksProps as getInnerBlocksProps, +} from '@wordpress/blocks'; import { useRef } from '@wordpress/element'; /** @@ -189,9 +192,9 @@ const InnerBlocks = ( props ) => { InnerBlocks.DefaultBlockAppender = DefaultBlockAppender; InnerBlocks.ButtonBlockAppender = ButtonBlockAppender; -InnerBlocks.Content = withBlockContentContext( ( { BlockContent } ) => ( - -) ); +useInnerBlocksProps.save = getInnerBlocksProps; + +InnerBlocks.Content = () => useInnerBlocksProps.save().children; /** * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inner-blocks/README.md