UNPKG

@aomi/react-native-components

Version:
28 lines (27 loc) 763 B
import * as React from 'react'; import Component from '../AbstractComponent'; import { View } from 'react-native'; import { separatorHeight } from '../styles/util'; import { colors } from '../styles/color'; // noinspection JSSuspiciousNameCombination const styles = { container: { flexDirection: 'column', borderWidth: separatorHeight, borderColor: colors.separator, borderRadius: 7, backgroundColor: '#FFF' } }; /** * @author 田尘殇Sean(sean.snow@live.com) * @date 2017/3/30 */ export default class Card extends Component { render() { const { style, children, ...other } = this.props; return (<View {...other} style={[styles.container, style]}> {children} </View>); } }