mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46811 I turned this off a few weeks after we turned off in FB app in (D60273063), after discovering it defeated a check used to disable `removeClippedSubviews` in RTL (reintroducing its bugged behavior). D63318754 fixed that bug, so this is turning back on by default. This is also needed to fix border rendering direction bug introduced in BackgroundStyleApplicator in views where the contextual layout direction is different from the root Android layout direction (either because of `direction`, or `I18nManager` forceRTL). This fixes some existing RNTester RTL screenshot test failures which are hooked via forceRTL. This also fixes rendering of some native components like `Switch` which would previously not respect contextual direction. Changelog: [Android][Fixed] - Reenable `setAndroidLayoutDirection` by default Reviewed By: javache Differential Revision: D63815077 fbshipit-source-id: fea64191d83d366c6bfc7b8c58b215773c8e8efe