Skip to content

Commit

Permalink
Much more accurate positioning and height for iPhone X and Android
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Mar 19, 2019
1 parent 7dcb3c5 commit 9902a56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"react-native": "0.58.4",
"react-native-vector-icons": "^6.3.0",
"react-native-dynamic-vector-icons": "0.0.3",
"@freakycoder/react-native-header-view": "0.2.4"
"@freakycoder/react-native-header-view": "0.2.61"
},
"devDependencies": {
"babel-core": "^7.0.0-bridge.0",
Expand Down
8 changes: 4 additions & 4 deletions lib/components/Header.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export function container(props) {
top: 0,
...ifIphoneX(
{
height: height || 70
height: height || 60
},
{ height: height || (statusBarHidden ? 50 : 70) }
)
},
android: {
top: 0,
height: height || (statusBarHidden ? 70 : 90)
height: height || (statusBarHidden ? 60 : 70)
}
}),
// height: height || (Platform === "ios" ? 50 : statusBarHidden ? 90 : 120),
Expand All @@ -35,13 +35,13 @@ export function innerContainer(statusBarHidden) {
ios: {
...ifIphoneX(
{
top: 24
top: 12
},
{ top: statusBarHidden ? 0 : 24 }
)
},
android: {
top: statusBarHidden ? 20 : 40
top: statusBarHidden ? 12 : 24
}
})
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freakycoder/react-native-header-view",
"version": "0.2.6",
"version": "0.2.61",
"description": "Fully customizable Header View for React Native.",
"keywords": [
"react-native",
Expand Down

0 comments on commit 9902a56

Please sign in to comment.