A framework for building native applications using React
Disable Android Workarounds for Attachment Metrics (#52446)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52446 The logic for retrieving metrics from a placeholder character is kind of insane, and has been around since inline views were added built into TextView in Paper. One of the workarounds, for old versions of Android on Samsung phones (no more info to bound the versions) causes incorrect behavior, at least in the case where we have RTL text in LTR layout. Another, explicitly mentions `singleLine` with RTL para, a deprecated TextView prop, that doesn't apply to us here (and also could never apply to BoringLayout, since RTL chars are not boring). We don't have these workarounds anywhere else (though we have some other workarounds for bidi crash in old Android), including other frameworks I could find. Let's bias to cleaning this old code up. Changelog: [Android][Fixed] - Fix incorrect positioning of inline view at the end of string when RTL text in LTR container Reviewed By: javache Differential Revision: D77703906 fbshipit-source-id: f25a5e2f05100f0288f3889132b658cdabf26f22
N
Nick Gerleman committed
7f224941bb807919b487d8e1634dd2124f9258b8
Parent: 7cd0b42
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 7/15/2025, 2:43:12 AM