Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig Händel committed Nov 9, 2017
1 parent 25393e3 commit 613920b
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 1 deletion.
28 changes: 28 additions & 0 deletions Card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types'
import {
View,
} from 'react-native';

export default const Card = ({ style, children }) => (
<View style={style} >
{children}
</View>);

Card.propTypes = {
children: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
style: PropTypes.oneOfType([PropTypes.number, PropTypes.object, PropTypes.array]),
onSwipedLeft: PropTypes.func,
onSwipedRight:PropTypes.func,
onSwipedTop: PropTypes.func,
onSwipedBottom: PropTypes.func,
onSwiped: PropTypes.func,
}
Card.defaultProps = {
style:{},
onSwiped: () => {},
onSwipedLeft: () => {},
onSwipedRight: () => {},
onSwipedTop: () => {},
onSwipedBottom: () => {},
}
Loading

0 comments on commit 613920b

Please sign in to comment.