Skip to main content

Text

A wrapper for Text component with extra functionality like modifiers support
(code example)

info

This component extends Text props.

tip

This component support margins, color, typography modifiers.

Usage#

<Text text30>Text goes here</Text>

API#

animated#

Use Animated.Text as a container
boolean

center#

Whether to center the text (using textAlign)
boolean

color#

Color of the text
string

highlightString#

Substring to highlight. Can be a simple string or a HighlightStringProps object, or an array of the above
HighlightString | HighlightString[]

highlightStyle#

Custom highlight style for highlight string
TextStyle

recorderTag#

Recorder Tag
'mask' | 'unmask'

underline#

Whether to add an underline
boolean

uppercase#

Whether to change the text to uppercase
boolean