Skip to content

docs: explain useNativeAnimations for use cases #2339

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions docs/docs/api/components/swipeable.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ style object for the children container (Animated.View), for example to apply `f

Enables two-finger gestures on supported devices, for example iPads with trackpads. If not enabled the gesture will require click + drag, with enableTrackpadTwoFingerGesture swiping with two fingers will also trigger the gesture.

### `useNativeAnimations`

Whether to use native animations. Defaults to `true`. Note that if you use
`LayoutAnimation` to smooth deletions/changes of `Swipeable` items in a list
(e.g. you want a swipe-right to delete the item from the list and render an
deletion animation via `LayoutAnimation.configureNext`), you'll want to set this to `false`. Otherwise, your list will show the non-open version of the Swipeable as it animates out of the list.

## Methods

Using reference to `Swipeable` it's possible to trigger some actions on it
Expand Down