Skip to content

Commit c528348

Browse files
committed
iPhone x helper dependency is removed
1 parent 2f959a5 commit c528348

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npm i @freakycoder/react-native-header-view
4242
```
4343
"react": ">= 16.x",
4444
"react-native": ">= 0.55.x",
45-
"react-native-iphone-x-helper": ">= 1.x.x",
45+
"@freakycoder/react-native-helpers": ">= 0.0.2",
4646
"react-native-dynamic-vector-icons": ">= x.x.x"
4747
```
4848

example/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"react": "16.8.6",
1313
"react-native": "0.60.4",
1414
"react-native-dynamic-vector-icons": "0.0.4",
15-
"react-native-iphone-x-helper": "^1.2.1",
1615
"react-native-vector-icons": "^6.6.0"
1716
},
1817
"devDependencies": {

lib/src/components/ClassicHeader/ClassicHeader.style.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Platform } from "react-native";
2-
import { ifIphoneX } from "react-native-iphone-x-helper";
2+
import { isIPhoneXFamily } from "@freakycoder/react-native-helpers";
33

44
export function container(props) {
55
const { height, width, backgroundColor, statusBarHidden } = props;
@@ -8,12 +8,9 @@ export function container(props) {
88
...Platform.select({
99
ios: {
1010
top: 0,
11-
...ifIphoneX(
12-
{
13-
height: height || 60
14-
},
15-
{ height: height || (statusBarHidden ? 50 : 70) }
16-
)
11+
height: isIPhoneXFamily
12+
? height || 60
13+
: height || (statusBarHidden ? 50 : 70)
1714
},
1815
android: {
1916
top: 0,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@freakycoder/react-native-header-view",
3-
"version": "0.4.8",
3+
"version": "0.4.9",
44
"description": "Fully customizable Header View for React Native.",
55
"keywords": [
66
"apple",
@@ -28,7 +28,7 @@
2828
"peerDependencies": {
2929
"react": ">= 16.x",
3030
"react-native": ">= 0.55.x",
31-
"react-native-iphone-x-helper": ">= 1.x.x",
31+
"@freakycoder/react-native-helpers": ">= 0.0.2",
3232
"react-native-dynamic-vector-icons": ">= x.x.x"
3333
}
3434
}

0 commit comments

Comments
 (0)