---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/type-aliases/SsTextureSource.md
---
# Type Alias: SsTextureSource

> **SsTextureSource** = `number` | `string` | { `uri`: `string`; }

Defined in: [packages/react-native-spritestudio/src/view/useSsTextures.ts:16](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/view/useSsTextures.ts#L16)

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.
