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

> **SsAnimationCallback** = (`animation`) => `void`

Defined in: [packages/react-native-spritestudio/src/player/SpriteStudioPlayer.ts:149](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/player/SpriteStudioPlayer.ts#L149)

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`
