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:
parent
350b5a2c48
commit
c15e2bb619
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue