UNPKG

react-native-screens

Version:
165 lines • 7.3 kB
import { HeaderBarButtonItem } from 'react-native-screens/types'; export declare const prepareHeaderBarButtonItems: (barButtonItems: HeaderBarButtonItem[], side: "left" | "right") => (import("react-native-screens/types").HeaderBarButtonItemSpacing | { buttonId: string; imageSource: import("react-native").ImageResolvedAssetSource | undefined; templateSource: import("react-native").ImageResolvedAssetSource | undefined; sfSymbolName: string | undefined; xcassetName: string | undefined; titleStyle: { color: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; } | undefined; tintColor: import("react-native").ProcessedColorValue | null | undefined; badge: { style: { color: import("react-native").ProcessedColorValue | null | undefined; backgroundColor: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; }; value: string; } | undefined; type: "button"; onPress: () => void; selected?: boolean | undefined; index?: number | undefined; title?: string | undefined; icon?: import("react-native-screens/types").PlatformIconIOS | undefined; variant?: "plain" | "done" | "prominent" | undefined; disabled?: boolean | undefined; width?: number | undefined; hidesSharedBackground?: boolean | undefined; sharesBackground?: boolean | undefined; identifier?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; } | { buttonId: string; imageSource: import("react-native").ImageResolvedAssetSource | undefined; templateSource: import("react-native").ImageResolvedAssetSource | undefined; sfSymbolName: string | undefined; xcassetName: string | undefined; titleStyle: { color: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; } | undefined; tintColor: import("react-native").ProcessedColorValue | null | undefined; badge: { style: { color: import("react-native").ProcessedColorValue | null | undefined; backgroundColor: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; }; value: string; } | undefined; type: "menu"; menu: { title?: string | undefined; items: (import("react-native-screens/types").HeaderBarButtonItemMenuAction | import("react-native-screens/types").HeaderBarButtonItemSubmenu)[]; singleSelection?: boolean | undefined; displayAsPalette?: boolean | undefined; }; changesSelectionAsPrimaryAction?: boolean | undefined; index?: number | undefined; title?: string | undefined; icon?: import("react-native-screens/types").PlatformIconIOS | undefined; variant?: "plain" | "done" | "prominent" | undefined; disabled?: boolean | undefined; width?: number | undefined; hidesSharedBackground?: boolean | undefined; sharesBackground?: boolean | undefined; identifier?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; } | { menu: { title?: string | undefined; items: (import("react-native-screens/types").HeaderBarButtonItemMenuAction | import("react-native-screens/types").HeaderBarButtonItemSubmenu)[]; singleSelection?: boolean | undefined; displayAsPalette?: boolean | undefined; }; imageSource: import("react-native").ImageResolvedAssetSource | undefined; templateSource: import("react-native").ImageResolvedAssetSource | undefined; sfSymbolName: string | undefined; xcassetName: string | undefined; titleStyle: { color: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; } | undefined; tintColor: import("react-native").ProcessedColorValue | null | undefined; badge: { style: { color: import("react-native").ProcessedColorValue | null | undefined; backgroundColor: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; }; value: string; } | undefined; type: "button"; onPress: () => void; selected?: boolean | undefined; index?: number | undefined; title?: string | undefined; icon?: import("react-native-screens/types").PlatformIconIOS | undefined; variant?: "plain" | "done" | "prominent" | undefined; disabled?: boolean | undefined; width?: number | undefined; hidesSharedBackground?: boolean | undefined; sharesBackground?: boolean | undefined; identifier?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; } | { menu: { title?: string | undefined; items: (import("react-native-screens/types").HeaderBarButtonItemMenuAction | import("react-native-screens/types").HeaderBarButtonItemSubmenu)[]; singleSelection?: boolean | undefined; displayAsPalette?: boolean | undefined; }; imageSource: import("react-native").ImageResolvedAssetSource | undefined; templateSource: import("react-native").ImageResolvedAssetSource | undefined; sfSymbolName: string | undefined; xcassetName: string | undefined; titleStyle: { color: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; } | undefined; tintColor: import("react-native").ProcessedColorValue | null | undefined; badge: { style: { color: import("react-native").ProcessedColorValue | null | undefined; backgroundColor: import("react-native").ProcessedColorValue | null | undefined; fontFamily?: string | undefined; fontSize?: number | undefined; fontWeight?: string | undefined; }; value: string; } | undefined; type: "menu"; changesSelectionAsPrimaryAction?: boolean | undefined; index?: number | undefined; title?: string | undefined; icon?: import("react-native-screens/types").PlatformIconIOS | undefined; variant?: "plain" | "done" | "prominent" | undefined; disabled?: boolean | undefined; width?: number | undefined; hidesSharedBackground?: boolean | undefined; sharesBackground?: boolean | undefined; identifier?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; } | null)[]; //# sourceMappingURL=prepareHeaderBarButtonItems.d.ts.map