Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
// Module ID: 12616
|
|
// Function ID: 12617
|
|
// Name: GuildPowerupsImage
|
|
// Dependencies: [4598, 21, 4606, 504, 1116, 8901, 5638, 2]
|
|
// Exports: default
|
|
|
|
// Module 12616 (GuildPowerupsImage)
|
|
import initialize from "initialize" /* 504 */;
|
|
import FastImageDefault from "FastImage" /* 5638 */;
|
|
import APNGDecorationNativeComponentDefault from "APNGDecorationNativeComponent" /* 8901 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4598 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4606);
|
|
let closure_5 = createStyles.createStyles({ image: { width: "75%", height: "100%", alignSelf: "center", resizeMode: "contain" } });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsImage.tsx");
|
|
|
|
export default function GuildPowerupsImage(style) {
|
|
({ imageUrl, isAnimated } = style);
|
|
if (isAnimated === undefined) {
|
|
isAnimated = true;
|
|
}
|
|
style = style.style;
|
|
const tmp = closure_5();
|
|
const items = [AccessibilityStore];
|
|
const stateFromStores = initialize.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
|
|
if (obj2.isAndroid()) {
|
|
if (isAnimated) {
|
|
if (!stateFromStores) {
|
|
const obj3 = { style: null, url: null };
|
|
const items1 = [tmp.image, style];
|
|
obj3.style = items1;
|
|
obj3.url = imageUrl;
|
|
let tmp6 = jsx(APNGDecorationNativeComponentDefault, { style: null, url: null });
|
|
}
|
|
return tmp6;
|
|
}
|
|
}
|
|
const obj4 = { style: null, source: { uri: imageUrl } };
|
|
const items2 = [tmp.image, style];
|
|
obj4.style = items2;
|
|
tmp6 = jsx(FastImageDefault, { style: null, source: { uri: imageUrl } });
|
|
};
|