diff --git a/README.md b/README.md index ec10ea2..fe7e5ac 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ npm i @freakycoder/react-native-header-view ``` "react": ">= 16.x", "react-native": ">= 0.55.x", -"react-native-iphone-x-helper": ">= 1.2.x", "react-native-dynamic-vector-icons": ">= x.x.x" ``` diff --git a/examples/package.json b/examples/package.json index 7cd4db7..611ce1e 100644 --- a/examples/package.json +++ b/examples/package.json @@ -10,9 +10,8 @@ "react": "16.5.0", "react-native": "0.58.4", "react-native-vector-icons": "^6.3.0", - "react-native-iphone-x-helper": "^1.2.0", "react-native-dynamic-vector-icons": "0.0.3", - "@freakycoder/react-native-header-view": "0.2.2" + "@freakycoder/react-native-header-view": "0.2.3" }, "devDependencies": { "babel-core": "^7.0.0-bridge.0", diff --git a/lib/components/Header.js b/lib/components/Header.js index cd6a423..f68cb41 100644 --- a/lib/components/Header.js +++ b/lib/components/Header.js @@ -1,19 +1,6 @@ import React from "react"; import { View, Text, TouchableOpacity } from "react-native"; import Icon from "react-native-dynamic-vector-icons"; -import { ifIphoneX } from "react-native-iphone-x-helper"; - -export const ifIPhoneXHeader = { - ...ifIphoneX( - { - marginTop: 44, - marginBottom: 44 - }, - { - marginTop: 16 - } - ) -}; // Styles import _styles, { @@ -54,7 +41,6 @@ const Header = props => { diff --git a/package.json b/package.json index 813ddf3..f961b89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@freakycoder/react-native-header-view", - "version": "0.2.3", + "version": "0.2.4", "description": "Fully customizable Header View for React Native.", "keywords": [ "react-native", @@ -21,7 +21,6 @@ "peerDependencies": { "react": ">= 16.x", "react-native": ">= 0.55.x", - "react-native-iphone-x-helper": ">= 1.2.x", "react-native-dynamic-vector-icons": ">= x.x.x" } }