Skip to main content
Version: 2.3.2

Text

Text displays words and characters at various sizes.

Text

Usage

import { Text } from 'react-native-elements';

<Text h1>Heading 1</Text>
<Text h2>Heading 2</Text>
<Text h3>Heading 3</Text>
<Text h4>Heading 4</Text>

Props


Reference

h1

font size 40 (optional)

TypeDefault
booleannone

h2

font size 34 (optional)

TypeDefault
booleannone

h3

font size 28 (optional)

TypeDefault
booleannone

h4

font size 22 (optional)

TypeDefault
booleannone

h1Style

Styling for when h1 is set (optional)

TypeDefault
Text style (object)none

h2Style

Styling for when h2 is set (optional)

TypeDefault
Text style (object)none

h3Style

Styling for when h3 is set (optional)

TypeDefault
Text style (object)none

h4Style

Styling for when h4 is set (optional)

TypeDefault
Text style (object)none

style

add additional styling for Text (optional)

TypeDefault
Text style (object)none