facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.28k stars 24.35k forks source link

Optimize CompositeBackgroundDrawable #47618

Open jorge-cab opened 2 days ago

jorge-cab commented 2 days ago

Summary: Its not optimal to reconstruct CompositeBackgroundDrawable everytime we add a layer to it.

With this change I'm adding an optimization to modify the underlying LayerDrawable in place instead of reconstructing everything. LayerDrawable has a pretty constrained API and some weirdish behaviors.

This is all feature flagged. since it will only be enabled with the new drawables

Changelog: [Internal]

Differential Revision: D65907786

facebook-github-bot commented 2 days ago

This pull request was exported from Phabricator. Differential Revision: D65907786

facebook-github-bot commented 1 day ago

This pull request was exported from Phabricator. Differential Revision: D65907786

facebook-github-bot commented 1 day ago

This pull request was exported from Phabricator. Differential Revision: D65907786