Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit 3729294

Browse files
committed
Fix status bar height on Android
1 parent 8d1fbff commit 3729294

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-navigation-addon-search-layout",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"main": "index.js",
55
"license": "MIT",
66
"dependencies": {

src/Header.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import { Animated, Dimensions, Platform, StyleSheet, View } from 'react-native';
33
import { withNavigation, HeaderBackButton } from 'react-navigation';
4+
import { Constants } from 'expo';
45

56
const X_WIDTH = 375;
67
const X_HEIGHT = 812;
@@ -10,7 +11,7 @@ const isIPhoneX =
1011

1112
const NOTCH_HEIGHT = isIPhoneX ? 20 : 0;
1213
const APPBAR_HEIGHT = Platform.OS === 'ios' ? 50 : 56;
13-
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : 0;
14+
const STATUSBAR_HEIGHT = Constants.statusBarHeight;
1415
const TITLE_OFFSET = Platform.OS === 'ios' ? 70 : 56;
1516

1617
@withNavigation

0 commit comments

Comments
 (0)