@deboxsoft/react-native-elements
Version:
React Native Elements & UI Toolkit
25 lines (19 loc) • 566 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { View, StyleSheet } from 'react-native';
import { ViewPropTypes, withTheme } from '../config';
const Divider = ({ style, theme }) => (
<View style={StyleSheet.flatten([styles.container(theme), style])} />
);
Divider.propTypes = {
style: ViewPropTypes.style,
theme: PropTypes.object,
};
const styles = {
container: theme => ({
backgroundColor: theme.colors.divider,
height: StyleSheet.hairlineWidth,
}),
};
export { Divider };
export default withTheme(Divider, 'Divider');