Skip to content

Commit c15e2bb

Browse files
danielbraunFacebook Github Bot 9
authored andcommitted
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 facebook#9132 Differential Revision: D3657134 fbshipit-source-id: f946698b548988541de7da5565d2ab122746ecf0
1 parent 350b5a2 commit c15e2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/toolbar/ReactToolbarManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void setOverflowIcon(ReactToolbar view, @Nullable ReadableMap overflowIco
6767

6868
@ReactProp(name = "rtl")
6969
public void setRtl(ReactToolbar view, boolean rtl) {
70-
view.setLayoutDirection(rtl ? LayoutDirection.LTR : LayoutDirection.RTL);
70+
view.setLayoutDirection(rtl ? LayoutDirection.RTL : LayoutDirection.LTR);
7171
}
7272

7373
@ReactProp(name = "subtitle")

0 commit comments

Comments
 (0)