Logo

Appbar.Content

A component used to display a title and optional subtitle in an appbar.

Usage

import * as React from 'react';
import { Appbar } from 'react-native-paper';

const MyComponent = () => (
    <Appbar.Header>
       <Appbar.Content title="Title" />
    </Appbar.Header>
);

export default MyComponent;

Props

Type: React.ReactNode

Text or component for the title.

Style for the title, if title is a string.

Type: React.RefObject<Text>

Reference for the title.

subtitle
Deprecated in v5.x
Type: React.ReactNode

Text for the subtitle.

subtitleStyle
Deprecated in v5.x

Style for the subtitle.

Type: (e: GestureResponderEvent) => void

Function to execute on press.

Type: string

Custom color for the text.

Type: ThemeProp
Type: string
Default value: 'appbar-content'

testID to be used on tests.

Edit this page