@primitives/image
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

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,
}

Readme

Keywords

none

Package Sidebar

Install

npm i @primitives/image

Weekly Downloads

1

Version

3.1.0

License

MIT

Unpacked Size

26.6 kB

Total Files

27

Last publish

Collaborators

  • julia.spehrer
  • ijigg
  • psxcode
  • deepsweet
  • xaviervia
  • irminakacz
  • fosimus
  • atilaz
  • moria.am
  • gideon.gur