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

type Props = {
    children: any;
    style?: StyleProp<TextStyle>;
}
const DText: FC<Props> = ({children, style}) => {
    return (
        <Text style={[styles.text, style]}>{children}</Text>
    )
}
const styles = StyleSheet.create({
    text: {
        // fontFamily: 'SF Pro Text',
        fontSize: responsiveWidth(3),
    }
})
export default DText;