Skip to content

Commit

Permalink
react-native-helpers ugraded for breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed Nov 5, 2020
1 parent ef0d836 commit bcdfc73
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npm i react-native-classic-header
"react-native": ">= 0.55.x",
"react-native-vector-icons": ">= 7.0.0",
"react-native-dynamic-vector-icons": ">= 1.0.0",
"@freakycoder/react-native-helpers": ">= 0.1.3"
"@freakycoder/react-native-helpers": ">= 1.0.0"
```

# Usage
Expand Down
3 changes: 2 additions & 1 deletion example/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { StatusBar, SafeAreaView } from "react-native";
import ClassicHeader from "react-native-classic-header";
// import ClassicHeader from "react-native-classic-header";
import ClassicHeader from "./build/dist/ClassicHeader";

const App = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "eslint ."
},
"dependencies": {
"@freakycoder/react-native-helpers": "^0.1.3",
"@freakycoder/react-native-helpers": "^1.0.0",
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-classic-header": "^0.1.0",
Expand Down
6 changes: 3 additions & 3 deletions lib/ClassicHeader.style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Platform, ViewStyle, TextStyle, StyleSheet } from "react-native";
import { isIPhoneXFamily } from "@freakycoder/react-native-helpers";
import { isIPhoneNotchFamily } from "@freakycoder/react-native-helpers";

interface Style {
titleTextStyle: TextStyle;
Expand All @@ -18,7 +18,7 @@ export function _container(
...Platform.select({
ios: {
top: 0,
height: isIPhoneXFamily
height: isIPhoneNotchFamily()
? height || 60
: height || (statusBarHidden ? 50 : 70),
},
Expand All @@ -38,7 +38,7 @@ export function _innerContainer(statusBarHidden: boolean): ViewStyle {
justifyContent: "center",
...Platform.select({
ios: {
top: isIPhoneXFamily ? 16 : statusBarHidden ? 0 : 24,
top: isIPhoneNotchFamily() ? 16 : statusBarHidden ? 0 : 24,
},
android: {
top: statusBarHidden ? 16 : 24,
Expand Down
1 change: 0 additions & 1 deletion lib/ClassicHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ interface IProps {
leftComponentStyle: any;
statusBarHidden: boolean;
rightComponentStyle: any;

leftComponentDisable: boolean;
rightComponentDisable: boolean;
leftComponentOnPress: () => void;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-classic-header",
"version": "0.1.0",
"version": "0.1.1",
"description": "Fully customizable Classic Header View for React Native",
"main": "./build/dist/ClassicHeader.js",
"repository": "[email protected]:WrathChaos/react-native-classic-header.git",
Expand Down Expand Up @@ -37,7 +37,7 @@
"react-native": ">= 0.55.x",
"react-native-vector-icons": ">= 7.0.0",
"react-native-dynamic-vector-icons": ">= 1.0.0",
"@freakycoder/react-native-helpers": ">= 0.1.3"
"@freakycoder/react-native-helpers": ">= 1.0.0"
},
"devDependencies": {
"@types/react": "^16.9.22",
Expand Down

0 comments on commit bcdfc73

Please sign in to comment.