T
DiscordAsset
An asset registered with Discord's packager (its metadata and dimensions).
type DiscordAsset = { … }Members
__packager_asset?
booleantrue on assets the React Native packager generated.
hash
stringThe packager's content hash of the file.
height
numberHeight in points at scale 1.
httpServerLocation
stringThe asset's directory in the bundle, such as /assets/images.
name
stringThe file name without extension, such as ic_close; assets.getByName matches on it.
scales
number[]The pixel densities the bundle ships the file at, such as [1, 2, 3].
type
stringThe file extension, such as png or svg.
width
numberWidth in points at scale 1.