Page MenuHomePhabricator

[native] Fix FlatList scroll perf issues on Android 13
ClosedPublic

Authored by ashoat on Jan 6 2023, 6:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 6:58 AM
Unknown Object (File)
Sun, Nov 3, 1:15 AM
Unknown Object (File)
Sun, Nov 3, 1:15 AM
Unknown Object (File)
Sun, Nov 3, 1:15 AM
Unknown Object (File)
Sun, Nov 3, 1:15 AM
Unknown Object (File)
Sun, Nov 3, 1:13 AM
Unknown Object (File)
Tue, Oct 15, 2:04 PM
Unknown Object (File)
Oct 14 2024, 10:03 PM
Subscribers
None

Details

Summary

See context on this Linear issue and this React Native GitHub issue. The original fix comes from here, but in React Native 0.70 that style prop gets deprecated, so this additional hack is necessary.

Test Plan

Compiled Android release build on physical Android 13 device

beforeaction

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested review of this revision.Jan 6 2023, 6:20 PM
patches/react-native+0.70.6.patch
32–38 ↗(On Diff #20647)

Is verticallyInverted now defined twice?

patches/react-native+0.70.6.patch
32–38 ↗(On Diff #20647)

Ah yeah, sorry. I'll remove the first instance

Delete the old version of the style

In the future, if the deprecated style prop was removed, we might consider switching to @shopify/flash-list. Created ENG-2667 to discuss it.

This revision is now accepted and ready to land.Jan 9 2023, 12:10 AM