Socket
Socket
Sign inDemoInstall

react-native-swipeable-list

Package Overview
Dependencies
514
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-swipeable-list

A Swipeable FlatList for React-Native with Quick Actions & Animations


Version published
Weekly downloads
5.1K
decreased by-12.44%
Maintainers
1
Install size
21.3 kB
Created
Weekly downloads
 

Readme

Source

react-native-swipeable-list

npm version NPM PRs Build status

A Swipeable FlatList for React-Native with Quick Actions & Animations

animated screenshot of a swipeable flatlist email inbox mockup using react-native-swipeable-list

Usage

  1. Install the package in your project:

npm install react-native-swipeable-list

or

yarn add react-native-swipeable-list

  1. Import the component into your component:

import SwipeableFlatList from 'react-native-swipeable-list';

  1. Pass it a data array. It inherits FlatListProps from the standard FlatList component from react-native.

It can be passed other props:

  • shouldBounceOnMount (default = true) - To alert the user that swiping is possible, the first row can bounce on component mount. Type boolean

  • maxSwipeDistance - Maximum distance to open to after a swipe. Type number || (Object => number)

  • renderQuickActions - Callback method to render the view that will be unveiled on swipe. Type renderItemType (which provides index and item, which will be very useful for performing actions on your items)

Example

Check out the example in the /examples folder. Clone this repo, then cd examples && yarn install && yarn start and then either react-native run-ios or react-native run-android to get the app up and running locally. Play with the code and see what you can do.

History & Shoutouts

Started from the SwipeableFlatList component that was removed from react-native's experimental libraries. (See: https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4)

Keywords

FAQs

Last updated on 27 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc