expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
39 lines (38 loc) • 954 B
TypeScript
export interface StackToolbarSpacerProps {
/**
* Whether the spacer should be hidden.
*
* @default false
*
* @platform android
* @platform ios
*/
hidden?: boolean;
/**
* The width of the spacing element.
*
* In Left/Right placements, width is required.
* In Bottom placement, if width is not provided, the spacer will be flexible
* and expand to fill available space.
*
* > **Note:** On Android, `width` is required in every placement.
*
* @platform android
* @platform ios
*/
width?: number;
/**
* Whether this spacer shares background with adjacent items.
*
* Only available in bottom placement.
*
* @platform iOS 26+
*/
sharesBackground?: boolean;
}
export interface NativeToolbarSpacerProps {
hidden?: boolean;
hidesSharedBackground?: boolean;
sharesBackground?: boolean;
width?: number;
}