Console error cleanup: patch react-native-render-html #52917
Console error cleanup: patch react-native-render-html #52917lakchote merged 3 commits intoExpensify:mainfrom
Conversation
|
@paultsimura Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
In #49035, we've decided we'll hold for the upstream fix, which is being worked on (but super slow, ngl): meliorence/react-native-render-html#674 @lakchote did we change the decision? Should we apply the patch? |
We didn't change decision, as far as I know. I'm not fond of doing patches, except if it's for a critical issue/use case. It was decided here to wait for the upstream fix. cc @blazejkustra |
rezkiy37
left a comment
There was a problem hiding this comment.
One minor comment, besides LGTM.
| @@ -22,4 +22,4 @@ index 6ac80d8..0000000 | |||
| - s.source_files = "ios/**/*.{h,m}" | |||
| - | |||
| - s.dependency 'React-Core' | |||
| -end | |||
|
@JKobrynski @rezkiy37 please see #52917 (comment) |
fabioh8010
left a comment
There was a problem hiding this comment.
@JKobrynski I wonder if we need to change the .js.map files for this patch 🤔
|
|
Closing the PR as it was decided to wait for the upstream to be fixed. |
|
@JKobrynski considering there has been no movements/changes from the upstream library, let's go the patch route cc @fabioh8010 @paultsimura @rezkiy37 Thank you! |
|
@JKobrynski could you please address the existing comments and ping me for a final review? 🙏 |
|
@paultsimura of course! |
|
PR updated, comments addressed! |
|
@lakchote @paultsimura kindly bump 🙏 |
|
Reviewing today |
Reviewer Checklist
Screenshots/Videos |
paultsimura
left a comment
There was a problem hiding this comment.
Tests well, and the errors are gone.
LGTM ✔️
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 9.0.77-0 🚀
|
|
@paultsimura @JKobrynski we had to revert this. Please fix it. |
Bump on #49035 (comment) please, so we can know what to look at more precisely. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.77-6 🚀
|






Explanation of Change
This PR introduces a patch to the
react-native-render-htmllibrary that gets rid of the following console warning we've been seeing on the web/desktop:It basically removes all occurrences of
.defaultPropsand related code from the TS, JS and JS map files in the library.Here is a related issue in the package's repository. Based on the discussion it seems like the library won't be updated anytime soon (the last release was ~2 years ago) and the only solution the community has at the moment is applying a patch.
Fixed Issues
$ #49035 #51099
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
MacOS: Desktop