T

DiscordAsset

An asset registered with Discord's packager (its metadata and dimensions).

type DiscordAsset = { … }

Members

true on assets the React Native packager generated.

hashstring

The packager's content hash of the file.

heightnumber

Height in points at scale 1.

The asset's directory in the bundle, such as /assets/images.

namestring

The file name without extension, such as ic_close; assets.getByName matches on it.

scalesnumber[]

The pixel densities the bundle ships the file at, such as [1, 2, 3].

typestring

The file extension, such as png or svg.

widthnumber

Width in points at scale 1.