Skip to content

Type Alias: SsAnimationCallback ​

SsAnimationCallback = (animation) => void

Defined in: packages/react-native-spritestudio/src/player/SpriteStudioPlayer.ts:149

A lifecycle notification, carrying which animation it is about.

The name is not decoration: one player outlives the animations mounted on it, so a handler that fires after a setAnimation cannot otherwise tell what finished — and a scene of sprites shares one handler across many.

Parameters ​

animation ​

string

Returns ​

void