Swipe component
JavaScript Objective-C Python Java
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
example First commit Jun 20, 2018
src First commit Jun 20, 2018
.gitattributes First commit Jun 20, 2018
.gitignore First commit Jun 20, 2018
.npmignore First commit Jun 20, 2018
LICENSE First commit Jun 20, 2018
README.md Update readme.md Jun 20, 2018
demo.gif First commit Jun 20, 2018
index.js First commit Jun 20, 2018
package.json First commit Jun 20, 2018

README.md

react-native-swipe-up-down npm version

Demo

Getting started

$ npm install react-native-swipe-up-down --save

  • OR

$ yarn add react-native-swipe-up-down

Usage

import SwipeUpDown from 'react-native-swipe-up-down';

// TODO: What to do with the module?
<SwipeUpDown
	swipeHeight={60}			
	itemMini={<ItemMini />} // Pass props component when collapsed
	itemFull={<ItemFull />} // Pass props component when show full
	onShowMini={() => console.log('mini')}
	onShowFull={() => console.log('full')}
	onMoveDown={() => console.log('down')}
	onMoveUp={() => console.log('up')}
	disablePressToShow={false} // Press item mini to show full
	style={{ backgroundColor: 'green' }} // style for swipe
/>

License

This module is MIT licensed