mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6524e611d3
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