import React, {FC, ReactElement} from "react";
import {StyleProp, StyleSheet, Text, TextStyle, View, ViewStyle} from 'react-native';
import {RFPercentage} from "react-native-responsive-fontsize";
import DText from "../DText/DText";
import {responsiveScreenFontSize, responsiveWidth} from "react-native-responsive-dimensions";

type Props = {
    children: string;
    style?: StyleProp<TextStyle>;
}
const DTitle: FC<Props> = ({children, style}) => {
    return (<DText style={[style, styles.text]}>{children}</DText>)
}
const styles = StyleSheet.create({
    text: {
        fontSize: responsiveScreenFontSize(2),
        fontWeight: "500",
        fontStyle: "normal"
    }
})
export default DTitle;