From c15e2bb6198116bb11c9244e542f687e9146d3bf Mon Sep 17 00:00:00 2001 From: Daniel Braun Date: Tue, 2 Aug 2016 12:26:12 -0700 Subject: [PATCH] Fixed reverse logic in ReactToolbarManager setRtl. Summary: The logic in `setRtl` is wrong. You would expect that `{rtl: true}` would set the layout direction to RTL, instead it currently does the opposite. This commit fixes the issue. Closes https://github.com/facebook/react-native/pull/9132 Differential Revision: D3657134 fbshipit-source-id: f946698b548988541de7da5565d2ab122746ecf0 --- .../com/facebook/react/views/toolbar/ReactToolbarManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java index dab4649d9..b37040a22 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java @@ -67,7 +67,7 @@ public class ReactToolbarManager extends ViewGroupManager { @ReactProp(name = "rtl") public void setRtl(ReactToolbar view, boolean rtl) { - view.setLayoutDirection(rtl ? LayoutDirection.LTR : LayoutDirection.RTL); + view.setLayoutDirection(rtl ? LayoutDirection.RTL : LayoutDirection.LTR); } @ReactProp(name = "subtitle")