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

Consolidate web/native BlockEditorProvider #19120

Closed
wants to merge 1 commit into from

Conversation

koke
Copy link
Contributor

@koke koke commented Dec 13, 2019

Description

We have a native variant of BlockEditorProvider, introduced in #14375 (although having that generic PR squashed doesn't help figure out why)

As part of wordpress-mobile/gutenberg-mobile#1466, I'm implementing BlockPreview (or a variant of it) on native, which requires us to be able to have more than one provider at once. The newer web version seems to be using a subregistry to handle this.

I haven't found anything that looks mobile specific, so in this PR I've just copied the web version into the native file, so it's easier to diff, but before merging I would just delete the native file.

How has this been tested?

I did some basic testing inserting, moving, deleting blocks, typing, changing selection... Everything seems to work fine, but I'm not sure if there's anything else we should be testing

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR. .

@koke koke added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label Dec 13, 2019
@koke koke requested a review from Tug December 13, 2019 11:10
@koke koke mentioned this pull request Dec 27, 2019
6 tasks
@koke
Copy link
Contributor Author

koke commented Jan 15, 2020

Closing this one, since the changes were merged in #19106.

@koke koke closed this Jan 15, 2020
@koke koke deleted the fix/consolidate-block-editor-provider branch January 15, 2020 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant