// Module ID: 12330 // Function ID: 12331 // Name: ImageSkeleton // Dependencies: [19, 17, 21, 4668, 712, 4739, 2] // Exports: ImageSkeleton, TextSkeleton // Module 12330 (ImageSkeleton) import noopAll from "noop" /* 19 */; import ThemesDefault from "Themes" /* 712 */; import Text from "Text" /* 4739 */; import { View } from "get ActivityIndicator" /* 17 */; import { jsx } from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4668 */; require = arg1; noopAll; createCacheKey = { skeleton: null }; createCacheKey = { borderRadius: ThemesDefault.radii.sm, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_NORMAL }; createCacheKey[0] = createCacheKey; let closure_4 = createCacheKey.createStyles(createCacheKey); const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx"); export const ImageSkeleton = function ImageSkeleton(style) { const obj = { style: null }; const items = [callback().skeleton, style.style]; obj[0] = items; return ; }; export const APPROX_CHAR_WIDTH_RATIO = 0.46; export const TextSkeleton = function TextSkeleton(widthChars) { let num = widthChars.widthChars; if (num === undefined) { num = 15; } const tmp2 = Text.TextStyleSheet[widthChars.variant]; const style = [callback().skeleton, { width: 0.46 * tmp2.fontSize * num, height: 0.8 * tmp2.lineHeight }]; return ; };