Skip to content

Tracker to follow up with react-native-web patches #32544

Closed

Description

@Beamanator

Purpose of this issue is to regularly check on the upstream PR so we can ideally get rid of the patch-package fix we had to implement in App

Patches:

  1. patches/react-native-web+0.19.9+001+initial.patch & patches/react-native-web+0.19.9+002+fix-mvcp.patch
  2. patches/react-native-web+0.19.9+003+measureInWindow.patch
  3. patches/react-native-web+0.19.9+004+fix-pointer-events.patch
  4. patches/react-native-web+0.19.9+005+image-header-support.patch

We don't currently have an Expensify fork of react-native-web, we recently updated to v0.19.9 and we have the above patches in the patches folder.

cc @roryabraham , do you think it's worth tracking these patches & creating upstream PRs for all of them, so we can try to remove the patches eventually?

Activity

  1. self-assigned this
    on Dec 6, 2023
  2. roryabraham commented on Dec 9, 2023

    @roryabraham
    Contributor

    @Beamanator Going to help fill this in as best as I can. At some point I also created a spreadsheet for a similar purpose

  3. roryabraham commented on Dec 9, 2023

    @roryabraham
    Contributor

    do you think it's worth tracking these patches & creating upstream PRs for all of them, so we can try to remove the patches eventually?

    In short, yes I think it's worth it

  4. Beamanator commented on Dec 11, 2023

    @Beamanator
    ContributorAuthor

    @roryabraham oh nifty! I like the spreadsheet idea too - we coulddd just link to that spreadsheet from this issue, if that is better? 🤷

  5. Beamanator commented on Dec 11, 2023

    @Beamanator
    ContributorAuthor

    And thanks for adding to the list... I wonder if we should just keep adding patches or if we know the RNW maintainer is planning to review those PRs eventually?

    #27174 for example - we've been "Holding" on the Upstream PR for more than 2 months at this point

  6. roryabraham commented on Dec 12, 2023

    @roryabraham
    Contributor

    Well if there's a specific PR and we're unsure of the status we can try to contact Meta and/or Necolas using discord. I want to be respectful of their time though, so I'm happy to reach out as long as:

    • there's an issue report with a minimal reproduction
    • we have an open PR to resolve the issue
    • they have made no recent comments on the issue or PR and have not previously made any comments to indicate when or why the PR may or may not be reviewed

    So basically we can take it case-by-case but for a major dependency like react-native-web we should only rely on patches if we have a reasonable expectation that the patch or alternate solution will be merged upstream.

    What we'd want to avoid is a scenario where we want a feature so we build it in a patch but don't try to get it merged upstream, or worse - the maintainer rejects an upstream solution and then we proceed with a patch anyways

  7. Beamanator commented on Dec 13, 2023

    @Beamanator
    ContributorAuthor

    I like that as being some sort of standard process! So for the issue I mentioned above...

    In this case, the patch would be super tiny, so I don't think it's a waste of time to at least get the fix in to our codebase, then keep waiting on maintainer to respond. What you think?

  8. roryabraham commented on Dec 13, 2023

    @roryabraham
    Contributor

    Sure, as long as the PR that introduces the patch in E/App links to the upstream issue and PR

  9. Beamanator commented on Dec 14, 2023

    @Beamanator
    ContributorAuthor

    Makes sense to me. I don't have a lot of time for this at the moment, but I still think the priority of all this is Monthly - so I'll get around to this eventually. What I'm thinking is:

    1. Recommend this (with slight improvements) as a formalized plan in Slack
    2. If we get agreement, write an SO
    3. Maybe make a GH issue template for this kind of tracker 🤷 (maybe not)
    4. Use new process to evaluate which PRs in this tracker to create as patches / which not to
  10. Beamanator commented on Jan 16, 2024

    @Beamanator
    ContributorAuthor

    Not priority yet

  11. 1 remaining item

  12. Beamanator commented on Mar 25, 2024

    @Beamanator
    ContributorAuthor

    same

  13. Beamanator commented on Apr 26, 2024

    @Beamanator
    ContributorAuthor

    same

  14. Beamanator commented on May 29, 2024

    @Beamanator
    ContributorAuthor

    same

  15. Beamanator commented on Jul 1, 2024

    @Beamanator
    ContributorAuthor

    same

  16. roryabraham commented on Jul 17, 2024

    @roryabraham
    Contributor

    I somewhat recently added some simple enforcement that will help patches from being ignored during package upgrades: #45098

    Given that this isn't likely to become more of a priority soon, and in all the current cases there isn't much we can do to speed things along, I'm going to close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions