Function: useSsTextures()
useSsTextures(
sources):Record<string,SkImage> |null
Defined in: packages/react-native-spritestudio/src/view/useSsTextures.ts:41
Decodes override textures into SkImages.
Its own hook rather than a loop over RN Skia's useImage, which cannot be called once per entry of a map whose size changes between renders — and which would not reach the app's asset directory either.
Returns null until every texture has decoded, so a caller can hold off drawing rather than flash a frame with a missing atlas.
Parameters
sources
SsTextureSources | null | undefined
Returns
Record<string, SkImage> | null