mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46214 This tries to represent a few operations which have previously been observed to be costly in a sampling profiler (showing more granularity than the trace events): 1. TextView getting measurements via `onMeasure()` when updating layout metrics during mount, which may [trigger UI-thread text layout](https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/java/android/widget/TextView.java;l=11217). 2. Text drawing, which may do layout as well 3. State updates, where we construct a new Spannable and set content to it Changelog: [Internal] Reviewed By: tdn120, mdvacca Differential Revision: D61705770 fbshipit-source-id: 199a6c65c18296f2ff948642701a331ba656e9d9