From 3e5b9e4cc18f8c2b6af24cb4022332dc96ccb0ea Mon Sep 17 00:00:00 2001 From: Agastya Darma Date: Tue, 29 Sep 2020 11:35:51 +0700 Subject: [PATCH] Adding configureNext.onAnimationDidFail callback on LayoutAnimation (#2136) Co-authored-by: Christoph Nakazawa --- docs/layoutanimation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/layoutanimation.md b/docs/layoutanimation.md index 02f90e23b0b..631d3dba263 100644 --- a/docs/layoutanimation.md +++ b/docs/layoutanimation.md @@ -79,7 +79,7 @@ export default App; ### `configureNext()` ```jsx -static configureNext(config, onAnimationDidEnd?) +static configureNext(config, onAnimationDidEnd?, onAnimationDidFail?) ``` Schedules an animation to happen on the next layout. @@ -90,6 +90,7 @@ Schedules an animation to happen on the next layout. | ----------------- | -------- | -------- | ----------------------------------- | | config | object | Yes | See config description below. | | onAnimationDidEnd | function | No | Called when the animation finished. | +| onAnimationDidFail| function | No | Called when the animation failed. | The `config` parameter is an object with the keys below. [`create`](layoutanimation.md#create) returns a valid object for `config`, and the [`Presets`](layoutanimation.md#presets) objects can also all be passed as the `config`.