Subheader View Source View Guidelines

A Subheader is a text based component with set styling, commonly used to identify specific sections within your app.

Usage

...
import { Subheader } from 'react-native-material-design';

render() {
    return (
        <View>
            <Subheader text="Normal Subheader"/>
            <Subheader text="Normal Subheader with color" color="paperRed" />
            <Subheader text="Normal Subheader" inset />
            <Subheader text="Normal Subheader with color" color="paperOrange" inset />
        </View> 
    );
}
...

Props

Prop Type Description Required Default
text string The Subheader text true
color string The color of the text false rgba(0,0,0,.54)
inset bool Whether the Subheader is set in a fixed distance from the left (72dp) false false
theme THEME_NAME false light