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

Commit

Permalink
Fix status bar height
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshuabaker2 committed Apr 11, 2017
1 parent 9ff8992 commit 5726ff8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/ExNavigationStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,19 +470,9 @@ class ExNavigationStack extends PureComponent<any, Props, State> {

_getStatusBarHeight(latestRouteConfig) {
let height = STATUSBAR_HEIGHT;

if (latestRouteConfig.navigationBar && latestRouteConfig.navigationBar.height) {
if (typeof latestRouteConfig.navigationBar.height === 'function') {
height = latestRouteConfig.navigationBar.height();
} else {
height = latestRouteConfig.navigationBar.height;
}
}

if (latestRouteConfig.statusBar && latestRouteConfig.statusBar.translucent) {
height = DEFAULT_STATUSBAR_HEIGHT;
}

return height;
}

Expand Down

0 comments on commit 5726ff8

Please sign in to comment.