Skip to content
Merged
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ Type: `boolean` (optional, default: `false`)

If set to `true` all defined swipe actions are blocked.

#### children

Type: `Anything that can be rendered` (required)

Content that is visible by default and swipeable to reveal the left and right views.

### swipeLeft

Type: `Object` (optional)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"browser": "dist/react-swipeable-list.umd.js",
"peerDependencies": {
"prop-types": "^15.7.2",
"react": "^16.12.0 || ^17",
"react-dom": "^16.12.0 || ^17"
"react": "^16.12.0 || ^17 || ^18",
"react-dom": "^16.12.0 || ^17 || ^18"
},
"devDependencies": {
"@babel/core": "7.13.15",
Expand Down
4 changes: 4 additions & 0 deletions src/module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ interface ISwipeableListItemProps {
* If set to `true` all defined swipe actions are blocked.
*/
blockSwipe?: boolean;
/**
* Content that is visible by default and swipeable to reveal the left and right views.
*/
children: ReactNode;
/**
* Data for defining left swipe action and rendering content after item is swiped.
*/
Expand Down