decord/source/modules/collectibles/native/SkeletonCard.tsx

50 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14043
// Function ID: 107487
2026-07-20 16:05:17 +00:00
// Name: sharedValue
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 4131, 689, 8592, 3992, 4132, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 14043 (sharedValue)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
const require = arg1;
let closure_5 = _createForOfIteratorHelperLoose.createStyles((width, height) => {
2026-07-20 16:05:17 +00:00
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { width, height, backgroundColor: importDefault(689).colors.BORDER_SUBTLE, borderRadius: importDefault(689).radii.sm };
2026-07-20 16:05:17 +00:00
obj.skeletonCard = obj;
return obj;
});
let closure_6 = { code: "function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
2026-07-23 10:11:24 +00:00
let result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("modules/collectibles/native/SkeletonCard.tsx");
2026-07-20 16:05:17 +00:00
export default function _default(width) {
let COLLECTIBLES_SHOP_CARD_WIDTH = width.width;
if (COLLECTIBLES_SHOP_CARD_WIDTH === undefined) {
2026-07-25 08:10:48 +00:00
COLLECTIBLES_SHOP_CARD_WIDTH = sharedValue(8592).COLLECTIBLES_SHOP_CARD_WIDTH;
2026-07-20 16:05:17 +00:00
}
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
2026-07-23 10:11:24 +00:00
sharedValue = undefined;
2026-07-20 16:05:17 +00:00
if (null == COLLECTIBLES_SHOP_CARD_HEIGHT) {
2026-07-25 08:10:48 +00:00
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(8592).COLLECTIBLES_SHOP_CARD_HEIGHT;
2026-07-20 16:05:17 +00:00
}
const tmp5 = callback(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
2026-07-25 08:10:48 +00:00
sharedValue = sharedValue(3992).useSharedValue(0.3);
2026-07-20 16:05:17 +00:00
const items = [sharedValue];
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
const obj = sharedValue(outer1_2[5]);
const result = sharedValue.set(obj.withRepeat(sharedValue(outer1_2[6]).withTiming(1, { duration: 650 }), -1, true));
2026-07-20 16:05:17 +00:00
}, items);
2026-07-25 08:10:48 +00:00
let obj = sharedValue(3992);
2026-07-20 16:05:17 +00:00
const fn = function y() {
return { opacity: sharedValue.get() };
};
fn.__closure = { opacity: sharedValue };
fn.__workletHash = 5620456625640;
fn.__initData = closure_6;
2026-07-25 08:10:48 +00:00
const animatedStyle = sharedValue(3992).useAnimatedStyle(fn);
2026-07-20 16:05:17 +00:00
const style = [tmp5.skeletonCard, width.style, animatedStyle];
2026-07-25 08:10:48 +00:00
return jsx(importDefault(3992).View, { style });
2026-07-20 16:05:17 +00:00
};