diff --git a/packages/editor/src/components/provider/index.native.js b/packages/editor/src/components/provider/index.native.js index 766fbc38d618b..bc1bf93cb0745 100644 --- a/packages/editor/src/components/provider/index.native.js +++ b/packages/editor/src/components/provider/index.native.js @@ -86,11 +86,15 @@ class NativeEditorProvider extends Component { } componentDidMount() { - const { capabilities, updateSettings, galleryRefactor } = this.props; + const { + capabilities, + updateSettings, + galleryWithImageBlocks, + } = this.props; updateSettings( { ...capabilities, - ...{ __experimentalGalleryRefactor: galleryRefactor }, + ...{ __unstableGalleryWithImageBlocks: galleryWithImageBlocks }, ...this.getThemeColors( this.props ), } ); @@ -142,8 +146,8 @@ class NativeEditorProvider extends Component { ( editorSettings ) => { updateSettings( { ...{ - __experimentalGalleryRefactor: - editorSettings.galleryRefactor, + __unstableGalleryWithImageBlocks: + editorSettings.galleryWithImageBlocks, }, ...this.getThemeColors( editorSettings ), } ); diff --git a/packages/react-native-bridge/ios/Gutenberg.swift b/packages/react-native-bridge/ios/Gutenberg.swift index 26a17e17dc9b0..e8b39be69da20 100644 --- a/packages/react-native-bridge/ios/Gutenberg.swift +++ b/packages/react-native-bridge/ios/Gutenberg.swift @@ -193,7 +193,7 @@ public class Gutenberg: NSObject { private func properties(from editorSettings: GutenbergEditorSettings?) -> [String : Any] { var settingsUpdates = [String : Any]() settingsUpdates["isFSETheme"] = editorSettings?.isFSETheme ?? false - settingsUpdates["galleryRefactor"] = editorSettings?.galleryRefactor ?? false + settingsUpdates["galleryWithImageBlocks"] = editorSettings?.galleryWithImageBlocks ?? false if let rawStyles = editorSettings?.rawStyles { settingsUpdates["rawStyles"] = rawStyles diff --git a/packages/react-native-bridge/ios/GutenbergBridgeDataSource.swift b/packages/react-native-bridge/ios/GutenbergBridgeDataSource.swift index 921454b0d192a..561784bd6b035 100644 --- a/packages/react-native-bridge/ios/GutenbergBridgeDataSource.swift +++ b/packages/react-native-bridge/ios/GutenbergBridgeDataSource.swift @@ -72,7 +72,7 @@ public extension GutenbergBridgeDataSource { public protocol GutenbergEditorSettings { var isFSETheme: Bool { get } - var galleryRefactor: Bool { get } + var galleryWithImageBlocks: Bool { get } var rawStyles: String? { get } var rawFeatures: String? { get } var colors: [[String: String]]? { get } diff --git a/packages/react-native-editor/src/index.js b/packages/react-native-editor/src/index.js index 8399b8eaf085c..3fd18a1674648 100644 --- a/packages/react-native-editor/src/index.js +++ b/packages/react-native-editor/src/index.js @@ -83,7 +83,7 @@ const setupInitHooks = () => { gradients, rawStyles, rawFeatures, - galleryRefactor, + galleryWithImageBlocks, } = props; if ( initialData === undefined && __DEV__ ) { @@ -111,7 +111,7 @@ const setupInitHooks = () => { gradients, rawStyles, rawFeatures, - galleryRefactor, + galleryWithImageBlocks, }; } );