UNPKG

react-native-app-notification

Version:
22 lines (21 loc) 1.27 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppNotificationContainer = void 0; var native_1 = __importDefault(require("styled-components/native")); var react_native_1 = require("react-native"); var height = react_native_1.Dimensions.get('screen').height; exports.AppNotificationContainer = native_1.default.SafeAreaView(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 100;\n\n ", ";\n"], ["\n position: absolute;\n left: 0;\n right: 0;\n z-index: 100;\n\n ", ";\n"])), function (_a) { var alignBottom = _a.alignBottom, bottomOffset = _a.bottomOffset, topOffset = _a.topOffset; return alignBottom ? "bottom: " + (bottomOffset || Math.round(height * 0.07)) + "px" : "top: " + (topOffset || Math.round(height * 0.07)) + "px"; }); var templateObject_1;