43 lines
2.5 KiB
TypeScript
43 lines
2.5 KiB
TypeScript
/* Metro module 8553; source: design/components/Graphic/native/Graphic.native.tsx; dependencies: [31, 27, 33, 4501, 5475, 3868, 2] */
|
|
function _fun67794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8738:6, offset: 0x01c31609, size: 253 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_5 = {'21/9': 2.3333333333333335, '16/9': 1.7777777777777777, '6/4': 1.5, '2/1': 2, '1/1': 1};
|
|
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'width': '100%',
|
|
'justifyContent': 'center', 'alignItems': 'center', 'overflow': 'hidden'}, image: {'width': '100%',
|
|
'height': '100%'}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Graphic/native/Graphic.native.tsx');
|
|
exports.Graphic = Graphic;
|
|
}
|
|
|
|
function ImageGraphic({src}) { // fn#67795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8738:363, offset: 0x01c31706, size: 85 bytes, params: 2, frame: 16
|
|
const styles = useStyles();
|
|
return ((Component) => <Component source={src} style={styles.image} resizeMode="contain" accessibilityElementsHidden />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
|
}
|
|
|
|
function Graphic(a0) { // fn#67796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8738:594, offset: 0x01c3175b, size: 185 bytes, params: 2, frame: 22
|
|
let aspectRatio = a0.aspectRatio;
|
|
aspectRatio = aspectRatio === undefined ? '16/9' : aspectRatio;
|
|
const style = a0.style;
|
|
const value = null;
|
|
const value2 = Object.create(value);
|
|
value2.aspectRatio = 0;
|
|
value2.style = 0;
|
|
const value3 = copyDataProperties({}, a0, value2, aspectRatio);
|
|
const styles = useStyles();
|
|
const items2 = [styles.container];
|
|
items2[1] = {aspectRatio: env0_5[aspectRatio]};
|
|
items2[2] = style;
|
|
const nativeModule = require(3868) /* metro dependency 3868: native */;
|
|
return (
|
|
<View style={items2}>
|
|
{nativeModule.isImage(value3) ? <ImageGraphic {...value3} /> : value}
|
|
</View>
|
|
);
|
|
}
|
|
|