- Android
- iOS
- Web
Animation View
Bind engine animation values to a view.
Engine API AnimationViewnayan-ui/animations
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| animatedStyle | Readonly<Partial<Record<keyof ViewAnimationValues, number | SharedValue>>> | Optional | |
| initial | Partial<ViewAnimationValues> | Optional | |
| style | CSSProperties | Optional | |
| ref | Ref<AnimationViewRef> | Optional |
React Native API
| Name | Type | Default | Details |
|---|---|---|---|
| children | React.ReactNode | Optional | |
| animatedStyle | Readonly<Partial<Record<keyof ViewAnimationValues, number | SharedValue>>> | Optional | |
| initial | Partial<ViewAnimationValues> | Optional | |
| style | ____ViewStyleProp_Internal | Optional | |
| ref | Ref<AnimationViewRef> | Optional | |
| accessibilityLabel | string | Optional | Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the `Text` nodes separated by space. See https://reactnative.dev/docs/view#accessibilitylabel |