UNPKG

@kietpt2003/react-native-core-ui

Version:
98 lines (93 loc) 3.6 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/SvgIcon/components/IconPlayCircle.tsx var IconPlayCircle_exports = {}; __export(IconPlayCircle_exports, { default: () => IconPlayCircle_default }); module.exports = __toCommonJS(IconPlayCircle_exports); var import_react = __toESM(require("react")); var import_react_native_svg = __toESM(require("react-native-svg")); // src/utils/resolutions.ts var import_react_native = require("react-native"); var import_react_native_iphone_x_helper = require("react-native-iphone-x-helper"); var import_react_native_device_info = __toESM(require("react-native-device-info")); var isTablet = import_react_native_device_info.default.isTablet(); var statusBarHeight = import_react_native.Platform.OS == "android" && import_react_native.StatusBar.currentHeight ? import_react_native.StatusBar.currentHeight : 0; // src/utils/scale.ts var import_react_native2 = require("react-native"); var { width, height } = import_react_native2.Dimensions.get("window"); var IPHONE_12_WIDTH = 375; var IPHONE_12_HEIGTH = 812; var scaleWidth = width / IPHONE_12_WIDTH; var scaleHeight = height / IPHONE_12_HEIGTH; var scaleAvg = (scaleWidth + scaleHeight) / 2; var scale = (size) => Math.round(import_react_native2.PixelRatio.roundToNearestPixel(size * scaleWidth)); // src/SvgIcon/components/IconPlayCircle.tsx var IconPlayCircle = ({ size, color, strokeWidth, fill, style }) => { const circleStrokeWidth = scale(5); const circleRadius = 50 - circleStrokeWidth / 2; return /* @__PURE__ */ import_react.default.createElement( import_react_native_svg.default, { width: size, height: size, viewBox: "0 0 100 100", style }, /* @__PURE__ */ import_react.default.createElement( import_react_native_svg.Circle, { cx: "50", cy: "50", r: circleRadius, fill, stroke: color, strokeWidth } ), /* @__PURE__ */ import_react.default.createElement( import_react_native_svg.Polygon, { points: "40,30 40,70 70,50", fill: color, stroke: color, strokeWidth } ) ); }; var IconPlayCircle_default = IconPlayCircle; //# sourceMappingURL=IconPlayCircle.js.map