Skip to main content
Version: Next

StyledText

StyledText component render a Text that can easily be re-style by using props.

Implementation code

import { StyledView, StyledText } from 'rn-nativeflow';

const Component = () => {
return (
<StyledView f={1} themeBg>
<StyledText>Here is your text...</StyledText>
</StyledView>
);
}
export default Component;

Props

PropTypeDefaultDescription
varianth1, h2, h3, h4, h5, h6, h7It change the font sizes on the basis of variant
ffstringIt set the font family of the text
fsnumber12It set the font size of the text
tasbooleanfalseIt set the text align to center when tas=true
fwstringIt set the font weight of the text
colorstringIt set the color of the text
themeColorbooleanIt apply the theme color on the text
primarybooleanIt apply the textPrimary color on the text according to theme
secondarybooleanIt apply the textSecondary color on the text according to theme
styleobjectIt takes styles object and apply on the text

variant fontSizes

variantsize
h132
h224
h318
h416
h514
h612
h710