[RNMobile] Add Array.prototype.flatMap polyfill#28400
Conversation
The native version doesn't fully support the built-in function flatMap so we have to add a polyfill.
|
Size Change: +270 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
We discussed this internally with @mchowning and @jsnjohnston and we all agreed on applying this solution. |
|
Forwarding my thoughts from chat over here: I'm not too worried about this approach to polyfills in terms of maintenance. I doubt we will run into any issues there anytime soon. My only concern would be build size but that looks fine too. I was also looking more into All and all this looks like the best approach to me, nice work @fluiddot ! |
gutenberg-mobilePR: wordpress-mobile/gutenberg-mobile#3035Description
Adds a polyfill for
Array.prototype.flatMapfunction (built-inflatMap) because the native version doesn't fully support it.So far this wasn't needed because there were no references in the native version to that function but in a recent PR it was introduced in the logic related to converting HTML to blocks.
How has this been tested?
This is a fix related to the issue "Pasting a text with text styles applied generates a exception" so the same steps can be used for testing it:
Screenshots
Video capture of copy/paste text with text styles:
copy-paste-text-android.mp4
Types of changes
Bug fix
Checklist: