You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracker to follow up with react-native-web patches #32544
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?
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
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
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?
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:
Recommend this (with slight improvements) as a formalized plan in Slack
If we get agreement, write an SO
Maybe make a GH issue template for this kind of tracker 🤷 (maybe not)
Use new process to evaluate which PRs in this tracker to create as patches / which not to
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.
Activity
roryabraham commentedon Dec 9, 2023
@Beamanator Going to help fill this in as best as I can. At some point I also created a spreadsheet for a similar purpose
roryabraham commentedon Dec 9, 2023
In short, yes I think it's worth it
roryabraham commentedon Dec 9, 2023
Just going to list all the open upstream PRs in react-native-web that I'm aware of originating from people acting on Expensify's behalf:
VirtualizedListpassive event listener warning necolas/react-native-web#2601Textthough clipped can be scrolled into view necolas/react-native-web#2584Beamanator commentedon Dec 11, 2023
@roryabraham oh nifty! I like the spreadsheet idea too - we coulddd just link to that spreadsheet from this issue, if that is better? 🤷
Beamanator commentedon Dec 11, 2023
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
roryabraham commentedon Dec 12, 2023
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:
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
Beamanator commentedon Dec 13, 2023
I like that as being some sort of standard process! So for the issue I mentioned above...
Text's clipped part is scrolled into view by dragging selection cursor necolas/react-native-web#2582Textthough clipped can be scrolled into view necolas/react-native-web#2584In 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?
roryabraham commentedon Dec 13, 2023
Sure, as long as the PR that introduces the patch in E/App links to the upstream issue and PR
Beamanator commentedon Dec 14, 2023
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:Beamanator commentedon Jan 16, 2024
Not priority yet
1 remaining item
Beamanator commentedon Mar 25, 2024
same
Beamanator commentedon Apr 26, 2024
same
Beamanator commentedon May 29, 2024
same
Beamanator commentedon Jul 1, 2024
same
roryabraham commentedon Jul 17, 2024
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.