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
F3536313: D6193.id20708.diff
Wed, Dec 25, 6:16 PM
F3531387: D6193.diff
Wed, Dec 25, 7:10 AM
Unknown Object (File)
Wed, Dec 18, 5:33 PM
Unknown Object (File)
Wed, Dec 18, 5:33 PM
Unknown Object (File)
Wed, Dec 18, 5:33 PM
Unknown Object (File)
Wed, Dec 18, 10:58 AM
Unknown Object (File)
Mon, Dec 16, 6:59 AM
Unknown Object (File)
Wed, Dec 11, 9:24 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