decord/source/modules/collectibles/native/SkeletonCard.tsx
2026-07-29 08:29:29 +00:00

53 lines
2 KiB
TypeScript

// Module ID: 14109
// Function ID: 14110
// Name: sharedValue
// Dependencies: [19, 21, 4189, 712, 8660, 4050, 4190, 2]
// Exports: default
// Module 14109 (sharedValue)
import noop from "noop";
import { jsx } from "jsxProd";
import createCacheKey from "createCacheKey";
const require = arg1;
let closure_5 = createCacheKey.createStyles((width, height) => {
let obj = { skeletonCard: null };
obj = { width, height, backgroundColor: importDefault(712).colors.BORDER_SUBTLE, borderRadius: importDefault(712).radii.sm };
obj[0] = obj;
return obj;
});
let closure_6 = { code: "function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
let result = require("createCacheKey").fileFinishedImporting("modules/collectibles/native/SkeletonCard.tsx");
export default function _default(width) {
let COLLECTIBLES_SHOP_CARD_WIDTH = width.width;
if (COLLECTIBLES_SHOP_CARD_WIDTH === undefined) {
COLLECTIBLES_SHOP_CARD_WIDTH = sharedValue(8660).COLLECTIBLES_SHOP_CARD_WIDTH;
}
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
sharedValue = undefined;
if (COLLECTIBLES_SHOP_CARD_HEIGHT == null) {
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(8660).COLLECTIBLES_SHOP_CARD_HEIGHT;
}
const tmp3 = closure_5;
const tmp3Result = closure_5(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
sharedValue = sharedValue(4050).useSharedValue(0.3);
const items = [sharedValue];
const effect = React.useEffect(() => {
const obj = sharedValue(outer1_2[5]);
const result = sharedValue.set(obj.withRepeat(sharedValue(outer1_2[6]).withTiming(1, { duration: 650 }), -1, true));
}, items);
let obj = sharedValue(4050);
class C {
constructor() {
obj = { opacity: c0.get() };
return obj;
}
}
C.__closure = { opacity: sharedValue };
C.__workletHash = 5620456625640;
C.__initData = closure_6;
const animatedStyle = sharedValue(4050).useAnimatedStyle(C);
const style = [tmp3Result.skeletonCard, width.style, animatedStyle];
return jsx(importDefault(4050).View, { style });
};