Text
Component to display text, it's a wrapper around the Text
component from react-native
library.
Import
import { Text } from "react-native-ficus-ui";
Usage
Change font size
Change font weight
Change font family
Props
Extends every BoxProps
.
color
The color property (`color` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
string | No |
fontSize
The font size property (`fontSize` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
string, number | No |
fontWeight
The font weight style property (`fontWeight` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
string | No |
textDecorLine
The text decoration line style property (`textDecorationLine` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
enum('none', 'underline', 'line-through', 'underline line-through') | No |
textDecorStyle
The text decoration style property (`textDecorationStyle` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
enum('solid', 'double', 'dotted', 'dashed') | No |
textDecorColor
The text decoration color style property (`textDecorationColor` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
string | No |
textAlign
The text alignment property (`textAlignment` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
enum('auto', 'left', 'right', 'center', 'justify') | No |
textTransform
The text transform property (`textTransform` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
enum('none', 'uppercase', 'lowercase', 'capitalize') | No |
letterSpacing
The letter spacing property (`letterSpacing` style prop in StyleSheet).
Type | Required | Default |
---|---|---|
number | No |