import * as React from 'react'; import { Text } from 'react-native'; import adjust from "../../adjust";
const MyText = ({ h1, h2, h3, h4, h5, p, bold, italic, title, style, ...rest })=> { return ( <Text style={[ h1 && { fontSize: adjust(48) }, h2 && { fontSize: adjust(32) }, h3 && { fontSize: adjust(20) }, h4 && { fontSize: adjust(18) }, h5 && { fontSize: adjust(16) }, p && { fontSize: adjust(12) }, bold && { fontWeight: 'bold' }, italic && { fontStyle: 'italic'}, style ]}{...rest}>{title} ); };
export { MyText }