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
This commit is contained in:
Daniel Braun 2016-08-02 12:26:12 -07:00 committed by Facebook Github Bot 9
parent 350b5a2c48
commit c15e2bb619
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class ReactToolbarManager extends ViewGroupManager<ReactToolbar> {
@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")