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
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
Unknown Object (File)
Sat, Nov 30, 4:04 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
Branch
ashoat/feature
Lint
No Lint Coverage
Unit
No Test Coverage

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