Hi friend! Meet us at App.js Conf in Krakow, Poland on April 4th and 5th with workshops and talks. Learn more


Automatically animates views to their new positions when the next layout happens.
A common way to use this API is to call it before calling setState.
Note that in order to get this to work on Android you need to set the following flags via UIManager:
    UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);


static configureNext(config, onAnimationDidEnd?)
Schedules an animation to happen on the next layout.

configobjectYesSee config parameters below.
onAnimationDidEndfunctionNoCalled when the animation finished. Only supported on iOS.
  • duration in milliseconds
  • create, config for animating in new views (see Anim type)
  • update, config for animating views that have been updated (see Anim type)

static create(duration, type, creationProp)
Helper for creating a config for configureNext.

static checkConfig(config, location, name)