src/components/library/Heading/index.js
import { Text } from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';
import { secondaryColor } from '../../../globals/colors';
const Heading = ({ style, children, ...rest }) => (
<Text
selectable
style={[
{
fontSize: 22,
fontWeight: '600',
textAlign: 'center',
color: secondaryColor,
},
style,
]}
{...rest}
>
{children}
</Text>
);
Heading.propTypes = {
style: PropTypes.any,
children: PropTypes.any,
};
export default Heading;