expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
32 lines (31 loc) • 694 B
TypeScript
import * as React from 'react';
import type { HeaderOptions, Layout } from '../types';
type Props = HeaderOptions & {
/**
* Options for the back button.
*/
back?: {
/**
* Title of the previous screen.
*/
title: string | undefined;
/**
* The `href` to use for the anchor tag on web
*/
href: string | undefined;
};
/**
* Whether the header is in a modal
*/
modal?: boolean;
/**
* Layout of the screen.
*/
layout?: Layout;
/**
* Title text for the header.
*/
title: string;
};
export declare function Header(props: Props): React.JSX.Element;
export {};