53 lines
2 KiB
TypeScript
53 lines
2 KiB
TypeScript
// Module ID: 14201
|
|
// Function ID: 14202
|
|
// Name: sharedValue
|
|
// Dependencies: [19, 21, 4255, 712, 9233, 4116, 4256, 2]
|
|
// Exports: default
|
|
|
|
// Module 14201 (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(9233).COLLECTIBLES_SHOP_CARD_WIDTH;
|
|
}
|
|
let COLLECTIBLES_SHOP_CARD_HEIGHT = width.height;
|
|
sharedValue = undefined;
|
|
if (COLLECTIBLES_SHOP_CARD_HEIGHT == null) {
|
|
COLLECTIBLES_SHOP_CARD_HEIGHT = sharedValue(9233).COLLECTIBLES_SHOP_CARD_HEIGHT;
|
|
}
|
|
const tmp3 = closure_5;
|
|
const tmp3Result = closure_5(COLLECTIBLES_SHOP_CARD_WIDTH, COLLECTIBLES_SHOP_CARD_HEIGHT);
|
|
sharedValue = sharedValue(4116).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(4116);
|
|
class C {
|
|
constructor() {
|
|
obj = { opacity: c0.get() };
|
|
return obj;
|
|
}
|
|
}
|
|
C.__closure = { opacity: sharedValue };
|
|
C.__workletHash = 5620456625640;
|
|
C.__initData = closure_6;
|
|
const animatedStyle = sharedValue(4116).useAnimatedStyle(C);
|
|
const style = [tmp3Result.skeletonCard, width.style, animatedStyle];
|
|
return jsx(importDefault(4116).View, { style });
|
|
};
|