decord/source/modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx

36 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 12158
// Function ID: 12159
2026-07-23 10:11:24 +00:00
// Name: ImageSkeleton
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 17, 21, 4189, 712, 4185, 2]
2026-07-23 10:11:24 +00:00
// Exports: ImageSkeleton, TextSkeleton
2026-07-29 08:29:29 +00:00
// Module 12158 (ImageSkeleton)
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { skeleton: null };
createCacheKey = { borderRadius: require("Themes").radii.sm, backgroundColor: require("Themes").colors.BACKGROUND_MOD_NORMAL };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx");
export const ImageSkeleton = function ImageSkeleton(style) {
2026-07-29 08:29:29 +00:00
const obj = { style: null };
const items = [createCacheKey().skeleton, style.style];
obj[0] = items;
return <View style={null} />;
2026-07-23 10:11:24 +00:00
};
export const APPROX_CHAR_WIDTH_RATIO = 0.46;
export const TextSkeleton = function TextSkeleton(widthChars) {
let num = widthChars.widthChars;
if (num === undefined) {
num = 15;
}
2026-07-29 08:29:29 +00:00
const tmp2 = require(4185) /* Text */.TextStyleSheet[widthChars.variant];
const style = [createCacheKey().skeleton, { width: 0.46 * tmp2.fontSize * num, height: 0.8 * tmp2.lineHeight }];
2026-07-23 10:11:24 +00:00
return <View style={style} />;
};