@uiw/react-native
Version:
UIW for React Native
20 lines • 537 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Text } from 'react-native';
const styles = StyleSheet.create({
default: {
marginBottom: 10,
fontSize: 16,
fontWeight: '500'
}
});
export default function H6(props) {
return <Text {...props} style={[styles.default, props.style]}>
{props.children}
</Text>;
}
H6.propTypes = {
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node, PropTypes.string]),
style: PropTypes.any
};
H6.defaultProps = {};