@primitives/image
v3.1.0
Published
`Image` is an element that allowed to render an image. Only the image scaling can be styled.
Downloads
15
Keywords
Readme
Image
is an element that allowed to render an image.
Only the image scaling can be styled.
These map to the same corresponding props in Web and in React Native.
Raw type definitions
export type TImage = {
id?: string,
alt?: string,
source: string,
height: number,
width: number,
borderRadius?: number,
}
export type TImageWeb = {
resizeMode?: string
}
export type TImageNative = {
resizeMode?: ImageResizeMode,
}