Skip to content

Commit

Permalink
Adding configureNext.onAnimationDidFail callback on LayoutAnimation (#…
Browse files Browse the repository at this point in the history
…2136)

Co-authored-by: Christoph Nakazawa <cpojer@fb.com>
  • Loading branch information
gedeagas and cpojer authored Sep 29, 2020
1 parent 1ab78b4 commit 3e5b9e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/layoutanimation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down

0 comments on commit 3e5b9e4

Please sign in to comment.