mirror of
https://github.com/react/react-native.git
synced 2026-10-04 19:01:54 +08:00
Summary: This fixes TextInput measurement caching. Previously we were not setting the correct Spannable in the cache; we needed to additional Spans to it to indicate font size and other attributes. This brings Fabric closer to how non-Fabric was measuring Spannables for TextInputs (see ReactTextInputShadowNode.java). This should fix a few crashes and will be most noticeable with dynamically-sized multiline textinputs where the number of lines changes over time. This also allows us to transmit less data from C++ to Java in the majority of cases. Changelog: [Internal] Differential Revision: D23670779 fbshipit-source-id: cf9b8c848b9e0c2619e01766b72b074248466825