Skip to content

Variable: SpriteStudioSprite ​

const SpriteStudioSprite: ForwardRefExoticComponent<SpriteStudioSpriteProps & RefAttributes<SpriteStudioSpriteRef>>

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioSprite.tsx:53

One animation inside a <SpriteStudioScene> — a position and a draw order, not a view.

Renders nothing of its own: the scene owns the single canvas everything draws into, and this component's whole job is to hold a player, keep its root transform current and stay enrolled. That is what makes twenty of them cost one canvas and one clock instead of twenty of each.

Outside a scene it warns and draws nothing, rather than silently rendering an empty box — the mistake is easy to make and impossible to see otherwise.