39 lines
2.4 KiB
TypeScript
39 lines
2.4 KiB
TypeScript
/* Metro module 3859; source: design/components/Icon/native/BaseIconImage.tsx; dependencies: [31, 27, 33, 3860, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as UseTokenModule from '../../../tokens/native/useToken.tsx'; /* Metro dependency 3860 */
|
|
|
|
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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
object = {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}};
|
|
object.custom = {width: undefined, height: undefined};
|
|
object.refresh_sm = {'width': 18, 'height': 18};
|
|
(FileImportTrackerModule).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 = (UseTokenModule).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}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun31970, 3859, [31, 27, 33, 3860, 2]) /* metro module 3859, dependencies: [31, 27, 33, 3860, 2] */;
|