"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
// @ts-nocheck

const StatusBarManager = _ref => {
  let {
    presentationStyle
  } = _ref;
  if (_reactNative.Platform.OS === "ios" || presentationStyle !== "overFullScreen") {
    return null;
  }

  //Can't get an actual state of app status bar with default RN. Gonna rely on "presentationStyle === overFullScreen" prop and guess application status bar state to be visible in this case.
  _reactNative.StatusBar.setHidden(true);
  (0, _react.useEffect)(() => {
    return () => _reactNative.StatusBar.setHidden(false);
  }, []);
  return null;
};
var _default = StatusBarManager;
exports.default = _default;
//# sourceMappingURL=StatusBarManager.js.map