Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
use 25 as height
Browse files Browse the repository at this point in the history
  • Loading branch information
chirag04 committed Oct 28, 2016
1 parent 9d4192e commit 4c52e4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ExNavigationStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const DEFAULT_ROUTE_CONFIG: ExNavigationConfig = {
styles: Platform.OS === 'ios' ? NavigationStyles.SlideHorizontal : NavigationStyles.Fade,
};

const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : (global.__exponent ? 24 : 0);
const DEFAULT_STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 25;
const STATUSBAR_HEIGHT = Platform.OS === 'ios'
? DEFAULT_STATUSBAR_HEIGHT
: (global.__exponent ? DEFAULT_STATUSBAR_HEIGHT : 0);

type TransitionFn = (
transitionProps: NavigationTransitionProps,
Expand Down Expand Up @@ -462,7 +465,7 @@ class ExNavigationStack extends PureComponent<any, Props, State> {
let height = NavigationBar.DEFAULT_HEIGHT;

if (latestRouteConfig.statusBar && latestRouteConfig.statusBar.translucent) {
height = NavigationBar.DEFAULT_HEIGHT_WITHOUT_STATUS_BAR + 24;
height = NavigationBar.DEFAULT_HEIGHT_WITHOUT_STATUS_BAR + DEFAULT_STATUSBAR_HEIGHT;
};

return height;
Expand Down Expand Up @@ -521,7 +524,7 @@ class ExNavigationStack extends PureComponent<any, Props, State> {
// pass the statusBarHeight to headerComponent if statusBar is translucent
let statusBarHeight = STATUSBAR_HEIGHT;
if (latestRouteConfig.statusBar && latestRouteConfig.statusBar.translucent) {
statusBarHeight = 24;
statusBarHeight = DEFAULT_STATUSBAR_HEIGHT;
}

// TODO: add height here
Expand Down

0 comments on commit 4c52e4a

Please sign in to comment.