Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile] Android: Pass the Gallery v2 Flag over from the editor #33544

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ data class GutenbergProps @JvmOverloads constructor(
?.let { putSerializable(PROP_STYLES, it) }
theme.getSerializable(PROP_FEATURES)
?.let { putSerializable(PROP_FEATURES, it) }
theme.getSerializable(PROP_IS_FSE_THEME)
?.let { putSerializable(PROP_IS_FSE_THEME, it) }
theme.getSerializable(PROP_GALLERY_WITH_IMAGE_BLOCKS)
?.let { putSerializable(PROP_GALLERY_WITH_IMAGE_BLOCKS, it) }
}
}

Expand Down Expand Up @@ -77,6 +81,8 @@ data class GutenbergProps @JvmOverloads constructor(
private const val PROP_GRADIENTS = "gradients"
private const val PROP_STYLES = "rawStyles"
private const val PROP_FEATURES = "rawFeatures"
private const val PROP_IS_FSE_THEME = "isFSETheme"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added the isFSETheme prop which was missing to align with the iOS implementation

private const val PROP_GALLERY_WITH_IMAGE_BLOCKS = "galleryWithImageBlocks"

const val PROP_CAPABILITIES = "capabilities"
const val PROP_CAPABILITIES_CONTACT_INFO_BLOCK = "contactInfoBlock"
Expand Down