Skip to content

Type Alias: SsTextureSource ​

SsTextureSource = number | string | { uri: string; }

Defined in: packages/react-native-spritestudio/src/view/useSsTextures.ts:16

One texture to put in front of the pack's own.

require() is allowed here and nowhere else. A pack cannot be named with one — it is a directory, and Metro does not ship directories (see SsSource) — but a replacement texture is a single standalone image with nothing to resolve against it, which is exactly what Metro is good at.