Popularity
0.4
Declining
Activity
4.1
Declining
11
0
1

Monthly Downloads: 0
Programming language: JavaScript
Tags: UI Components     Miscellaneous    

react-swipe-to-delete-ios alternatives and similar libraries

Based on the "Miscellaneous" category

Do you think we are missing an alternative of react-swipe-to-delete-ios or a related project?

Add another 'Miscellaneous' Library

README

react-swipe-to-delete-ios

A simple React component to reproduce the way iOS deletes an item in a list. Demo

[GIF Demo](./src/demo/demo.gif?raw=true "Title")

Installation

yarn add react-swipe-to-delete-ios

Usage

import React from 'react'
import SwipeToDelete from 'react-swipe-to-delete-ios'

...

<SwipeToDelete
  onDelete={handleDelete} // required
  height={100} // required
  // optional
  transitionDuration={250} // default
  deleteWidth={75} // default
  deleteColor'rgba(252, 58, 48, 1.00)' // default
  deleteText='Delete' // default
>
  {children}
</SwipeToDelete>

Todo

  • [ ] Tests
  • [ ] Possibility to add SVG icon instead of text
  • [ ] Browser compatibility check