Skip to content
Draft
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare interface Props {
*
* @default []
*/
preventSwipe?: string[]
preventSwipe?: ('left' | 'right' | 'up' | 'down')[]
}

declare const TinderCard: React.FC<Props>
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Callback that will be executed when a `TinderCard` has left the screen. It will
### `preventSwipe`

- optional
- type: `Array<string>`
- type: `Array<undefined>`
- default: `[]`

An array of directions for which to prevent swiping out of screen. Valid arguments are `'left'`, `'right'`, `'up'` and `'down'`.
Expand Down