Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.91k forks source link

Console error cleanup: patch react-native-render-html #52917

Open JKobrynski opened 14 hours ago

JKobrynski commented 14 hours ago

Explanation of Change

This PR introduces a patch to the react-native-render-html library that gets rid of the following console warning we've been seeing on the web/desktop:

Warning: TRenderEngineProvider: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

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

$ https://github.com/Expensify/App/issues/49035 https://github.com/Expensify/App/issues/51099 PROPOSAL: N/A

Tests

  1. Run the web app
  2. Log into the app
  3. Navigate to a report with emojis and attachments (if necessary create one)
  4. Make sure the emojis and all attachments (images, videos) look all right
  5. Repeat the process in the desktop app

Offline tests

N/A

QA Steps

Same as Tests section above

PR Author Checklist

Screenshots/Videos

Android: Native
MacOS: Chrome / Safari ![web](https://github.com/user-attachments/assets/f838cb44-6758-4916-acf0-d90b4e16eb99)
MacOS: Desktop ![desktop](https://github.com/user-attachments/assets/778c4bed-2a6d-40ea-b27a-d5f6fc9f85ec)