Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rn-components-kit/swipe-out

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rn-components-kit/swipe-out

iOS-style swipe-out buttons that appear from behind a component.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SwipeOut

NPM version

English | 中文

iOS-style swipe-out buttons that appear from behind a component. It supports the following features:

  • left and right two directions
  • multiple hidden buttons
  • fully customized hidden part

How to use

npm install @rn-components-kit/swipe-out --save
PreviewCode
Demo1 Code
Demo2 Code
Demo3 Code

Props

Reference

Props

style

Allow you to customizr style

TypeRequiredDefault
objectno-
left

The config for left hidden part. It supports followings:

  1. function[() => React.ReactElement]: allows you to fully customize the hidden component
  2. object[Option]: a pre-setted style for button, you need to specify title, color and onPress
  3. array[Option[]]: multiple buttons

Option:

  • title[string]: text to display in button
  • color[string]: background color of button
  • onPress[function]: callback will be triggered when pressing the button
TypeRequiredDefault
() => React.ReactElement | Option | Option[] | nullno-
right

The config for right hidden part (same to left)

TypeRequiredDefault
() => React.ReactElement | Option | Option[] | nullno-
onBeginDragging
() => void

A callback will be triggered when you begin to drag SwipeOut

TypeRequiredDefault
functionno() => {}
onEndDragging
() => void

A callback will be triggered when dragging operation ends

TypeRequiredDefault
functionno() => {}

Keywords

FAQs

Package last updated on 25 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc