48 lines
2.8 KiB
TypeScript
48 lines
2.8 KiB
TypeScript
/* Metro module 14643; source: modules/premium/powerups/native/GuildPowerupsImage.tsx; dependencies: [4502, 33, 4501, 566, 478, 7601, 5475, 2] */
|
|
function _fun110643(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:6, offset: 0x02381181, size: 186 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': '75%',
|
|
'height': '100%', 'alignSelf': 'center', 'resizeMode': 'contain'}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/powerups/native/GuildPowerupsImage.tsx');
|
|
exports.default = GuildPowerupsImage;
|
|
}
|
|
|
|
function GuildPowerupsImage({imageUrl, isAnimated, style}) { // fn#110644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14840:318, offset: 0x0238123b, size: 248 bytes, params: 2, frame: 21
|
|
var r0;
|
|
isAnimated = isAnimated === undefined || isAnimated;
|
|
var value;
|
|
const styles = useStyles();
|
|
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
|
function() {
|
|
return AccessibilityStore.useReducedMotion;
|
|
});
|
|
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
|
|
if (platformUtilsModule.isAndroid()) {
|
|
if (isAnimated) {
|
|
if (useReducedMotion) {
|
|
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
|
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
|
r0 = value;
|
|
} else {
|
|
value = importDefault(7601) /* metro dependency 7601: APNGDecorationNativeComponent */;
|
|
value = ((Component) => <Component style={[styles.image, style]} url={imageUrl} />)(value);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
|
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
value = importDefault(5475) /* metro dependency 5475: FastImage */;
|
|
value = ((Component) => <Component style={[styles.image, style]} source={{uri: imageUrl}} />)(value);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|