secullum-react-native-ui 4.4.0-beta.3 → 4.4.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StatusBar = void 0;
4
4
  const React = require("react");
5
- const theme_1 = require("../modules/theme");
6
5
  const react_native_1 = require("react-native");
6
+ const react_native_status_bar_height_1 = require("react-native-status-bar-height");
7
+ const theme_1 = require("../modules/theme");
7
8
  class StatusBar extends React.Component {
8
9
  constructor() {
9
10
  super(...arguments);
@@ -12,7 +13,7 @@ class StatusBar extends React.Component {
12
13
  const styles = react_native_1.StyleSheet.create({
13
14
  statusBar: {
14
15
  backgroundColor: theme.statusBarColor,
15
- height: react_native_1.StatusBar.currentHeight || 20
16
+ height: (0, react_native_status_bar_height_1.getStatusBarHeight)()
16
17
  }
17
18
  });
18
19
  return styles;
@@ -25,4 +26,4 @@ class StatusBar extends React.Component {
25
26
  }
26
27
  }
27
28
  exports.StatusBar = StatusBar;
28
- StatusBar.height = react_native_1.StatusBar.currentHeight || 20;
29
+ StatusBar.height = (0, react_native_status_bar_height_1.getStatusBarHeight)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "secullum-react-native-ui",
3
- "version": "4.4.0-beta.3",
3
+ "version": "4.4.1-beta.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "files": [
@@ -26,6 +26,7 @@
26
26
  "react-native-elevated-view": "^0.0.6",
27
27
  "react-native-masked-text": "^1.7.2",
28
28
  "react-native-modal-datetime-picker": "^9.1.0",
29
+ "react-native-status-bar-height": "^2.6.0",
29
30
  "react-native-vector-icons": "^8.0.0",
30
31
  "react-native-web-modal": "^1.0.1"
31
32
  },