43 lines
951 B
TypeScript
43 lines
951 B
TypeScript
// Metro module 3892 (f3893).
|
|
import { Image as Image2 } from "react-native";
|
|
import { useToken } from "../../../tokens/native/useToken";
|
|
let c2211_4 = {
|
|
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
|
|
},
|
|
custom: {
|
|
width: void 0,
|
|
height: void 0
|
|
},
|
|
refresh_sm: {
|
|
width: 18,
|
|
height: 18
|
|
}
|
|
};
|
|
export function BaseIconImage(props) {
|
|
const { source, size = "md", color, resizeMode, style, accessible, accessibilityLabel } = props;
|
|
const token = useToken(color);
|
|
return <Image2 fadeDuration={0} source={source} resizeMode={resizeMode} style={[c2211_4[size], token != null ? {
|
|
tintColor: token
|
|
} : color != null && typeof color === "string" ? {
|
|
tintColor: color
|
|
} : void 0, style]} accessible={accessible} accessibilityLabel={accessibilityLabel} />;
|
|
}
|