[RNMobile] Update Preview handling for better Android support#25930
Merged
chipsnyder merged 4 commits intomasterfrom Oct 8, 2020
Merged
[RNMobile] Update Preview handling for better Android support#25930chipsnyder merged 4 commits intomasterfrom
chipsnyder merged 4 commits intomasterfrom
Conversation
2 tasks
|
Size Change: +8.89 kB (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
Merged
3 tasks
Member
|
I confirm that this fixes the Android preview issue 🎉 |
antonis
approved these changes
Oct 8, 2020
Member
antonis
left a comment
There was a problem hiding this comment.
Good job @chipsnyder 👍
The changes LGTM and solve the issue at hand 🎉
Thank you for this 🙇
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes wordpress-mobile/gutenberg-mobile#2452
Related PR
gutenberg-mobilewordpress-mobile/gutenberg-mobile#2696Description
On Android the loading of the editor is dependent on editorDidMount as the callback to signal that the editor has finished loading. With that, the Preview should be rendered within the
EditorProvidercomponent to share that event. This PR moves theEditorModelogic to theEditorand loads differently based on that.How has this been tested?
To disable or enable the development version of Modal Layout Picker
On WPAndroid:
Download the Android app with the Preview functionality from wordpress-mobile/WordPress-Android#13022
With the metro server running
On WPiOS:
With the metro server running
Expect The Preview to load
Also, open existing posts/pages and create new posts/pages and expect those to load as well.
Screenshots
Types of changes
Bug fix
Checklist: