Skip to content

Latest commit

 

History

History
executable file
·
41 lines (32 loc) · 1.31 KB

README.md

File metadata and controls

executable file
·
41 lines (32 loc) · 1.31 KB

react-native-tap-swipe-select

React Native Tap Swipe Select Module - Similar to Facebook like app module that support on both platforms IOS and Android

Usage

import Swiper from 'react-native-tap-swipe-select';

<Swiper>
  <YourListComponent />
</Swiper>

Demo

//Edit index.js on the root folder 

import { AppRegistry } from 'react-native';
import LikeAppExample from 'react-native-tap-swipe-select/example';

AppRegistry.registerComponent('YourAppName', () => LikeAppExample);

Screenshot

alt text

Installation

npm install react-native-tap-swipe-select@https://github.com/httpdeveloper/react-native-tap-swipe-select.git --save

Props

Prop Type Description Default
moods array Array of moods (Required) -
initialPosition object Initial position of touchable item (Required) {x, y, width, height}
swipeArea object Swipeable area. If provided then specific area will be cosidered as swipeable otherwise, It takes whole area (optional) {x, y, width, height}
swipeEnabled boolean Enable swipeable area false
onSwipeRelease function Callback function after finish the swiping -
onSwipe function Callback function during swiping -

License

MIT