Skip to main content

Text

Text displays words and characters of various sizes.

Import

import { Text } from '@nomada-sh/react-native-eyecandy';

Example

Props

Text Props

Inherits Text Props.


weight

Font weight of the text.

Possible values:

  • 'semibold' uses a font weight of 700.
  • 'medium' uses a font weight of 'normal'.
  • 'regular' uses a font weight of 500.

See Text Style fontWeight for remaining font weight values.

TypeDefault
'semibold' or 'medium' or 'regular' or Text Style fontWeight'normal'

size

Font size of the text.

TypeDefault
number14

align

See Text Style textAlign.

TypeDefault
Text Style textAlign'auto'

color

Color of the text. The color will change based on the theme (dark or light) if set to 'default'.

TypeDefault
string or 'default' or 'primary' or 'error' or 'greyout''default'

contrast

If true, the text will be displayed in a color that contrasts with the color set with the color prop.

TypeDefault
booleanfalse

marginTop

Type
number

marginBottom

Type
number