Skip to main content

Type Alias: AnimatorProps

AnimatorProps: object

Type declaration

animationIndex?

optional animationIndex: number | ISharedValue<number>

The index of the animation to play. To find out the index for the animation you want to play, you can use the onAnimationsLoaded callback.

Default

0

onAnimationsLoaded()?

optional onAnimationsLoaded: (animations) => unknown

Returns a list of all animations for the model.

Parameters

animations: AnimationItem[]

Returns

unknown

transitionDuration?

optional transitionDuration: number

The time it takes transitioning from one animation to another. At 0 the transition is immediate. Unit is seconds.

Default

0

Defined in

src/react/Animator.tsx:15