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: string

Custom color for the text.

Type: React.ReactNode

Text for the title.

Type: StyleProp<TextStyle>

Style for the title.

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
Type: StyleProp<TextStyle>

Style for the subtitle.

Type: () => void

Function to execute on press.

Type: StyleProp<ViewStyle>
Type: Theme
Edit this page