mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3.7 KiB
3.7 KiB
id, title, original_id
| id | title | original_id |
|---|---|---|
| version-0.23-layoutanimation | layoutanimation | layoutanimation |
LayoutAnimation # | Edit on GitHub |
Automatically animates views to their new positions when the next layout happens.
A common way to use this API is to call LayoutAnimation.configureNext
before calling setState.
Methods #
static configureNext(config: Config, onAnimationDidEnd?: Function) #
Schedules an animation to happen on the next layout.
@param config Specifies animation properties:
durationin millisecondscreate, config for animating in new views (seeAnimtype)update, config for animating views that have been updated (seeAnimtype)
@param onAnimationDidEnd Called when the animation finished. Only supported on iOS. @param onError Called on error. Only supported on iOS.
static create(duration: number, type, creationProp) #
Helper for creating a config for configureNext.