From 4957320e0eb638be660aa97d142dd617d3a59569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20=C5=9Alimak?= Date: Fri, 2 Sep 2016 15:50:09 +0200 Subject: [PATCH] [Fixed 1087] Long titles display with a dots at the end, not hidden behind the buttons (#1088) --- src/NavBar.js | 65 ++++++++++++++++++++++++++++----------------------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/src/NavBar.js b/src/NavBar.js index c6701a580..a96ff82be 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -42,9 +42,13 @@ import _backButtonImage from './back_chevron.png'; const styles = StyleSheet.create({ title: { textAlign: 'center', - marginTop: 10, - fontSize: 18, color: '#0A0A0A', + fontSize: 18, + width: 180, + alignSelf: 'center', + }, + titleWrapper: { + marginTop: 10, position: 'absolute', ...Platform.select({ ios: { @@ -76,7 +80,7 @@ const styles = StyleSheet.create({ position: 'absolute', }, backButton: { - width: 130, + width: 100, height: 37, position: 'absolute', ...Platform.select({ @@ -414,32 +418,35 @@ class NavBar extends React.Component { title = title(childState); } return ( - - {title} - + + + {title} + + ); }