Body
Body displays words and characters of various sizes. They are typically used to display text content.
Import
import { Body } from '@nomada-sh/react-native-eyecandy';
Example
Props
Text Props
Inherits Text Props
size
Font size of the text.
Possible values:
- Any number can be used as a font size.
'xsmall'uses a font size of10.'small'uses a font size of12.'medium'uses a font size of14.'large'uses a font size of16.'xlarge'uses a font size of18.
| Type | Default |
|---|---|
number or 'xsmall' or 'small' or 'medium' or 'large' or 'xlarge' | medium |