From fac8603d55f5c39f20daab344f51d861ebc212c8 Mon Sep 17 00:00:00 2001 From: Yann Date: Wed, 27 Apr 2016 10:52:28 +0200 Subject: [PATCH] Fix NavBar height for Android --- package.json | 2 +- src/NavBar.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b7ab53caf..2fe59d5eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-router-flux", - "version": "3.22.21", + "version": "3.22.22", "description": "React Native Router using Flux architecture", "repository": { "type": "git", diff --git a/src/NavBar.js b/src/NavBar.js index 86cbdc138..cb54fc412 100644 --- a/src/NavBar.js +++ b/src/NavBar.js @@ -194,7 +194,7 @@ const styles = StyleSheet.create({ fontWeight: '500', color: '#0A0A0A', position: 'absolute', - top: 20, + top: Platform.OS === 'ios' ? 20 : 0, left: 0, right: 0, }, @@ -202,7 +202,7 @@ const styles = StyleSheet.create({ backgroundColor: '#EFEFF2', paddingTop: 0, top: 0, - height: 64, + height: Platform.OS === 'ios' ? 64 : 44, right: 0, left: 0, borderBottomWidth: 0.5,