setState in class components.
Example
Reference
Methods
configureNext
Parameters:
config parameter is an object with the keys below. create returns a valid object for config, and the Presets objects can also all be passed as the config.
durationin millisecondscreate, optional config for animating in new viewsupdate, optional config for animating views that have been updateddelete, optional config for animating views as they are removed
create, update, or delete has the following keys:
type, the animation type to useproperty, the layout property to animate (optional, but recommended forcreateanddelete)springDamping(number, optional and only for use withtype: Type.spring)initialVelocity(number, optional)delay(number, optional)duration(number, optional)
create
create, update, and delete fields) to pass into configureNext. The type parameter is an animation type, and the creationProp parameter is a layout property.
Example:
Properties
Types
An enumeration of animation types to be used in thecreate method, or in the create/update/delete configs for configureNext. (example usage: LayoutAnimation.Types.easeIn)
Properties
An enumeration of layout properties to be animated to be used in thecreate method, or in the create/update/delete configs for configureNext. (example usage: LayoutAnimation.Properties.opacity)
Presets
A set of predefined animation configs to pass intoconfigureNext.
easeInEaseOut
Calls configureNext() with Presets.easeInEaseOut.
linear
Calls configureNext() with Presets.linear.
spring
Calls configureNext() with Presets.spring.
Example:

