decord/alpha/source/modules/collectibles/native/SkeletonCard.tsx
github-actions e160b228c5 chore: update source for alpha 348.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4942.js (118.4 MB)
2026-09-22 07:41:18 +00:00

60 lines
2.2 KiB
TypeScript

// Module ID: 9156
// Function ID: 9157
// Name: SkeletonCard
// Dependencies: [19, 21, 4757, 576, 9049, 4493, 4758, 2]
// Exports: default
// Module 9156 (SkeletonCard)
import nativeDefault from "native" /* 576 */;
import ReanimatedRexport from "ReanimatedRexport" /* 4493 */;
import timing from "timing" /* 4758 */;
import noop from "module_19" /* 19 */;
const ReanimatedRexportDefault = ReanimatedRexport;
require = fn;
const jsx = fn(21).jsx;
const createStyles = fn(4757);
let closure_5 = createStyles.createStyles((width, height) => {
const obj = { skeletonCard: null };
const size = { width, height, backgroundColor: nativeDefault.colors.BORDER_SUBTLE, borderRadius: nativeDefault.radii.sm };
obj.skeletonCard = size;
return obj;
});
const __initData = { code: "function SkeletonCardTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}" };
let size = fn(2);
let result = size.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(9049).COLLECTIBLES_SHOP_CARD_WIDTH;
}
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
sharedValue = undefined;
if (COLLECTIBLES_SHOP_CARD_HEIGHT == null) {
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(9049).COLLECTIBLES_SHOP_CARD_HEIGHT;
}
const tmp3Result = closure_5(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
sharedValue = sharedValue(4493).useSharedValue(0.3);
const items = [sharedValue];
const effect = noop.useEffect(() => {
const obj = ReanimatedRexport;
const result = sharedValue.set(obj.withRepeat(timing.withTiming(1, { duration: 650 }), -1, true));
}, items);
let obj = sharedValue(4493);
class C {
constructor() {
obj = { opacity: closure_0.get() };
return obj;
}
}
C.__closure = { opacity: sharedValue };
C.__workletHash = 5620456625640;
C.__initData = __initData;
const animatedStyle = sharedValue(4493).useAnimatedStyle(C);
const obj3 = { style: null };
const items1 = [tmp3Result.skeletonCard, width.style, animatedStyle];
obj3.style = items1;
return jsx(ReanimatedRexportDefault.View, { style: null });
};