From c6ef641738c67064dc35ac18f9a04932d2b7f61d Mon Sep 17 00:00:00 2001 From: Diego Couto Date: Mon, 17 Jul 2017 08:03:35 -0300 Subject: [PATCH] Fix for #2019 - rightTitle / leftTitle positioning --- dist/NavBar.js | 6 +++--- src/NavBar.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/NavBar.js b/dist/NavBar.js index e848c2309..fafa532e5 100644 --- a/dist/NavBar.js +++ b/dist/NavBar.js @@ -261,14 +261,14 @@ paddingLeft:8, flexDirection:'row', transform:[{scaleX:_reactNative.I18nManager.isRTL?-1:1}]}), -rightButton:_extends({ -position:'absolute'}, +rightButton:_extends({}, _reactNative.Platform.select({ ios:{ +position:'absolute', top:12}, android:{ -top:10}, +top:0}, windows:{ top:8}}),{ diff --git a/src/NavBar.js b/src/NavBar.js index d37655d73..d865c41f9 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -262,13 +262,13 @@ const styles = StyleSheet.create({ transform: [{ scaleX: I18nManager.isRTL ? -1 : 1 }], }, rightButton: { - position: 'absolute', ...Platform.select({ ios: { + position: 'absolute', top: 12, }, android: { - top: 10, + top: 0, }, windows: { top: 8,