35 lines
2.0 KiB
TypeScript
35 lines
2.0 KiB
TypeScript
/* Metro module 3859; source: design/components/Icon/native/BaseIconImage.tsx; dependencies: [31, 27, 33, 3860, 2] */
|
|
function _fun31970(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#31970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3998:6, offset: 0x0100898c, size: 286 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_2 = (require(27) /* metro dependency 27 */).Image;
|
|
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
|
object2 = {xxs: {'width': 12, 'height': 12}, xs: {'width': 16, 'height': 16}, sm: {'width': 18, 'height': 18},
|
|
md: {'width': 24, 'height': 24}, lg: {'width': 32, 'height': 32}};
|
|
object2.custom = {width: undefined, height: undefined};
|
|
object2.refresh_sm = {'width': 18, 'height': 18};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/components/Icon/native/BaseIconImage.tsx');
|
|
exports.BaseIconImage = BaseIconImage;
|
|
}
|
|
|
|
function BaseIconImage({source, size, color, resizeMode, style, accessible, accessibilityLabel}) { // fn#31971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3998:424, offset: 0x01008aaa, size: 202 bytes, params: 2, frame: 22
|
|
size = size === undefined ? 'md' : size;
|
|
const value4 = (require(3860) /* metro dependency 3860: useToken */).useToken(color);
|
|
return (
|
|
<Image
|
|
fadeDuration={0}
|
|
source={source}
|
|
resizeMode={resizeMode}
|
|
style={[env0_4[size],
|
|
value4 != null ? {tintColor: value4} : color != null && typeof color === 'string' ? {tintColor: color} : undefined,
|
|
style]}
|
|
accessible={accessible}
|
|
accessibilityLabel={accessibilityLabel}
|
|
/>
|
|
);
|
|
}
|
|
|