expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
44 lines (43 loc) • 1.17 kB
TypeScript
import type { ReactNode } from 'react';
import type { NativeStackHeaderItemCustom } from '../../../../react-navigation/native-stack';
export interface StackToolbarViewProps {
/**
* Can be any React node.
*
* @platform android
* @platform ios
*/
children?: NativeStackHeaderItemCustom['element'];
/**
* Whether the view should be hidden.
*
* @default false
*
* @platform android
* @platform ios
*/
hidden?: boolean;
/**
* Whether to hide the shared background.
*
* @see [Official Apple documentation](https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground) for more information.
*
* @platform iOS 26+
*/
hidesSharedBackground?: boolean;
/**
* Whether to separate the background of this item from other items.
*
* Only available in bottom placement.
*
* @default false
* @platform ios
*/
separateBackground?: boolean;
}
export interface NativeToolbarViewProps {
children?: ReactNode;
hidden?: boolean;
hidesSharedBackground?: boolean;
separateBackground?: boolean;
}