Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding configureNext.onAnimationDidFail callback on LayoutAnimation #2136

Merged
merged 4 commits into from
Sep 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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