Page MenuHomePhabricator

[native] Patch react-native to avoid FlatList this.props error
ClosedPublic

Authored by ashoat on Apr 2 2024, 1:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 2:24 PM
Unknown Object (File)
Tue, May 7, 2:24 PM
Unknown Object (File)
Tue, May 7, 2:24 PM
Unknown Object (File)
Tue, May 7, 2:23 PM
Unknown Object (File)
Tue, May 7, 2:22 PM
Unknown Object (File)
Thu, May 2, 1:21 AM
Unknown Object (File)
Apr 16 2024, 7:31 PM
Unknown Object (File)
Apr 16 2024, 10:19 AM
Subscribers

Details

Summary

This solves ENG-7635, at least temporarily. It looks like it's this GitHub issue, first introduced by this change.

People on the GitHub issue have several suggestions:

  1. This change
  2. Removing @babel/plugin-transform-private-methods, which we could consider if we remove the private method uses in the transitive dependency that necessitates its introduction initially
  3. Adding a babel plugin somewhere that strips Flow types. I'll consider this one as I continue investigating
Test Plan

Confirm that the issue goes away after resetting the Metro cache (yarn dev -c) and refreshing the app

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat published this revision for review.Apr 2 2024, 1:37 PM
This revision is now accepted and ready to land.Apr 2 2024, 1:38 PM

Actually looks like the right solution (that got landed to React Native) is this

Will wait on some CI builds and then land

This revision was landed with ongoing or failed builds.Apr 2 2024, 1:55 PM
This revision was automatically updated to reflect the committed changes.