UNPKG

react-native-full-responsive

Version:

Create a fully responsive React Native app for all supported platforms

14 lines (13 loc) 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBaseWidth = void 0; var _constants = require("../constants"); const getBaseWidth = function () { let deviceType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'sm'; let baseSizes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.DefaultBases; return baseSizes[deviceType] || _constants.DefaultBases.sm; }; exports.getBaseWidth = getBaseWidth; //# sourceMappingURL=getBaseWidth.js.map