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
F2779474: D6193.id20708.diff
Fri, Sep 20, 11:34 AM
F2779178: D6193.diff
Fri, Sep 20, 9:46 AM
F2770982: D6193.id20647.diff
Thu, Sep 19, 9:58 PM
Unknown Object (File)
Wed, Sep 18, 4:51 AM
Unknown Object (File)
Wed, Sep 18, 4:51 AM
Unknown Object (File)
Wed, Sep 18, 4:51 AM
Unknown Object (File)
Wed, Sep 18, 4:50 AM
Unknown Object (File)
Wed, Sep 18, 4:47 AM
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