import styled from 'styled-components/native';

export const TextStyle = styled.Text`
    ${(props: any) => props.fontFamily && `font-family: ${props.fontFamily}`};
    color: ${(props: any) => props?.theme[props.colorText] || props.colorText || '#222'};
    ${(props: any) => props.alignSelfCenter && `align-self: center;`}
    ${(props: any) => props.alignCenter && `text-align: center;`}
    ${(props: any) => props.alignRight && `text-align: right;`}
    ${(props: any) => props.size && `font-size: ${props.size}px;`}
    ${(props: any) => props.bold && `font-weight: bold;`}
` as any;
