🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

rmc-swipe-item

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rmc-swipe-item

React Mobile Swipe action Component for web

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

rmc-swipe-item

React Mobile Carousel Component (web and react-native)

react node version npm download

Screenshots

Usage

npm install rmc-swipe-item
import SwipeItem from 'rmc-swipe-item';


const btnList = [
  {
    text: 'edit',
    style: {
      backgroundColor: 'red',
    },
    onClick: this.editClick,
  },
  {
    text: 'cancel',
    style: {},
    onClick: () => {},
  },
]

<SwipeItem btnList={ btnList }>
  <div style={{ lineHeight: '30px', paddingLeft: '40px', border: '1px solid #eee' }}>
    <div>
      <a target='_blank' href='http://www.baidu.com' rel="noopener noreferrer">Hansin Test</a>  
    </div>
    <a target='_blank' href='http://www.baidu.com' rel="noopener noreferrer">---Test</a>
  </div>
</SwipeItem>

see example

Development

npm i
npm start

Example

http://localhost:8000/examples/

install

npm download

API

namedescriptiontypedefault
btnListbutton listArrayisRequired
styleswipe styleObject{}
classNameclassNameString''

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-swipe-item is released under the MIT license.

Keywords

react

FAQs

Package last updated on 25 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts