Skip to content

Commit

Permalink
added proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
palingheorghe authored and palingheorghe committed Sep 5, 2019
1 parent f9ee7b4 commit 2ee16d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/DeckSwiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
Dimensions,
Animated,
PanResponder,
Text
} from 'react-native';
import PropTypes from 'prop-types';

Expand Down Expand Up @@ -127,7 +126,12 @@ function DeckSwiper({
}

DeckSwiper.propTypes = {
components: PropTypes.array.isRequired
components: PropTypes.array.isRequired,
onSwipeRight: PropTypes.func,
onSwipeLeft: PropTypes.func,
focusedElementStyle: PropTypes.any,
nextElementStyle: PropTypes.any,
style: PropTypes.any
}

export default DeckSwiper;

0 comments on commit 2ee16d8

Please sign in to comment.