Skip to content

Commit

Permalink
Version 0.2: StatusBar is no longer part of react-native. It is comin…
Browse files Browse the repository at this point in the history
…g from external library. Prep for React Native 0.60
  • Loading branch information
WrathChaos committed Jul 5, 2019
1 parent 478e85f commit d5cad3c
Show file tree
Hide file tree
Showing 25 changed files with 9 additions and 4 deletions.
Empty file modified .eslintrc.js
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .npmignore
100644 → 100755
Empty file.
Empty file modified .watchmanconfig
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ npm i @freakycoder/react-native-helpers
```
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"@react-native-community/status-bar": "^1.x.x"
```

## DeviceInfo Usage
Expand Down
Empty file modified assets/Screenshots/example.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/splash.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified babel.config.js
100644 → 100755
Empty file.
Empty file modified example/.gitignore
100644 → 100755
Empty file.
Empty file modified example/.watchmanconfig
100644 → 100755
Empty file.
Empty file modified example/App.js
100644 → 100755
Empty file.
Empty file modified example/app.json
100644 → 100755
Empty file.
Empty file modified example/assets/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/assets/splash.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified example/babel.config.js
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion example/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"eject": "expo eject"
},
"dependencies": {
"@freakycoder/react-native-helpers": "0.0.12",
"@freakycoder/react-native-helpers": "0.0.2",
"@react-native-community/status-bar": "^1.0.3",
"expo": "^32.0.0",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
Expand Down
1 change: 1 addition & 0 deletions lib/src/helpers.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
isIOS,
isAndroid
} from "./helpers/device/DeviceInfo";

import {
isIPhoneXFamily,
hasNotch,
Expand Down
Empty file modified lib/src/helpers/device/DeviceInfo.js
100644 → 100755
Empty file.
Empty file modified lib/src/helpers/normalize/normalizeText.js
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion lib/src/helpers/notch/Notch.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Dimensions, Platform, StatusBar } from "react-native";
import { Dimensions, Platform } from "react-native";
import StatusBar from "@react-native-community/status-bar";

// iPhone X Dimensions
const iPhoneX_WIDTH = 375;
Expand Down
5 changes: 3 additions & 2 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freakycoder/react-native-helpers",
"version": "0.0.12",
"version": "0.0.2",
"description": "Easy to use & awesome helpers for React Native.",
"keywords": [
"ios",
Expand Down Expand Up @@ -32,6 +32,7 @@
"license": "MIT",
"peerDependencies": {
"react": ">= 16.x.x",
"react-native": ">= 0.55.x"
"react-native": ">= 0.55.x",
"@react-native-community/status-bar": "^1.x.x"
}
}

0 comments on commit d5cad3c

Please sign in to comment.