Fix status bar in example.

This commit is contained in:
Dylan Vann 2018-05-03 00:20:59 -04:00
parent 0a7d771e8f
commit b384002528
3 changed files with 24 additions and 13 deletions

View File

@ -1,8 +1,8 @@
import React from 'react'
import { Platform, StatusBar, StyleSheet, View } from 'react-native'
import { getStatusBarHeight } from 'react-native-status-bar-height'
export const STATUS_BAR_HEIGHT =
Platform.OS === 'ios' ? 20 : StatusBar.currentHeight
export const STATUS_BAR_HEIGHT = getStatusBarHeight()
export default () => <View style={styles.statusBarUnderlay} />

View File

@ -9,10 +9,11 @@
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-fast-image": "file:../react-native-fast-image-4.0.6.tgz",
"react-native-fast-image": "file:../react-native-fast-image-4.0.8.tgz",
"react-native-image-progress": "^1.1.0",
"react-native-status-bar-height": "^2.0.0",
"react-native-vector-icons": "^4.5.0",
"react-navigation": "^1.5.7",
"react-navigation": "^1.5.11",
"react-timeout": "^1.1.1",
"uuid": "3.0.1"
},

View File

@ -4401,9 +4401,9 @@ react-native-drawer-layout@1.3.2:
dependencies:
react-native-dismiss-keyboard "1.0.0"
"react-native-fast-image@file:../react-native-fast-image-4.0.6.tgz":
version "4.0.6"
resolved "file:../react-native-fast-image-4.0.6.tgz#0233377da75b1ec16a5506afa56ae7114e201a8d"
"react-native-fast-image@file:../react-native-fast-image-4.0.8.tgz":
version "4.0.8"
resolved "file:../react-native-fast-image-4.0.8.tgz#ef6bfc6006cfaefa3d507a1b04fe9ccc6d6c68aa"
dependencies:
prop-types "^15.5.10"
@ -4413,15 +4413,25 @@ react-native-image-progress@^1.1.0:
dependencies:
prop-types "^15.5.10"
react-native-iphone-x-helper@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.0.2.tgz#7dbca530930f7c1ce8633cc8fd13ba94102992e1"
react-native-safe-area-view@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/react-native-safe-area-view/-/react-native-safe-area-view-0.7.0.tgz#38f5ab9368d6ef9e5d18ab64212938af3ec39421"
dependencies:
hoist-non-react-statics "^2.3.1"
react-native-tab-view@^0.0.74:
react-native-status-bar-height@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/react-native-status-bar-height/-/react-native-status-bar-height-2.0.0.tgz#9def59bdfa162da73134aff4f480ef2fc873ee0a"
dependencies:
react-native-iphone-x-helper "^1.0.1"
"react-native-tab-view@github:react-navigation/react-native-tab-view":
version "0.0.74"
resolved "https://registry.yarnpkg.com/react-native-tab-view/-/react-native-tab-view-0.0.74.tgz#62c0c882d9232b461ce181d440d683b4f99d1bd8"
resolved "https://codeload.github.com/react-navigation/react-native-tab-view/tar.gz/36ebd834d78b841fc19778c966465d02fd1213bb"
dependencies:
prop-types "^15.6.0"
@ -4497,9 +4507,9 @@ react-native@0.55.3:
xmldoc "^0.4.0"
yargs "^9.0.0"
react-navigation@^1.5.7:
version "1.5.7"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-1.5.7.tgz#157556922f9900a6afc2129abf4853bbd8332a57"
react-navigation@^1.5.11:
version "1.5.11"
resolved "https://registry.yarnpkg.com/react-navigation/-/react-navigation-1.5.11.tgz#fba6ab45d7b9987c1763a5aaac53b4f6d62b7f5c"
dependencies:
clamp "^1.0.1"
hoist-non-react-statics "^2.2.0"
@ -4508,7 +4518,7 @@ react-navigation@^1.5.7:
react-lifecycles-compat "^1.0.2"
react-native-drawer-layout-polyfill "^1.3.2"
react-native-safe-area-view "^0.7.0"
react-native-tab-view "^0.0.74"
react-native-tab-view "github:react-navigation/react-native-tab-view"
react-proxy@^1.1.7:
version "1.1.8"