From beb6a34e85887f9d55e6cd23acee37960d8585fa Mon Sep 17 00:00:00 2001 From: mikaello Date: Thu, 3 Aug 2017 10:40:56 +0200 Subject: [PATCH] Example: Centered title in navigation bar (#2172) --- Example/Example.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Example/Example.js b/Example/Example.js index 08b5014c5..b250042fd 100644 --- a/Example/Example.js +++ b/Example/Example.js @@ -59,7 +59,7 @@ const Example = () => { - + navigation.state.key}/> @@ -82,7 +82,7 @@ const Example = () => { tabBarLabel="TAB #1" icon={TabIcon} navigationBarStyle={{backgroundColor: 'red'}} - titleStyle={{color: 'white'}} + titleStyle={{color: 'white', alignSelf: 'center'}} > { component={TabView} title="Tab #1_2" back - titleStyle={{color: 'black'}} + titleStyle={{color: 'black', alignSelf: 'center'}} /> @@ -124,7 +124,7 @@ const Example = () => { - + console.log('onEnter')} onExit={()=>console.log('onExit')}