react-native-screens
Version:
Native navigation primitives for your React Native app.
54 lines • 2.71 kB
TypeScript
import type { CodegenTypes as CT, ViewProps, ColorValue } from 'react-native';
type DirectionType = 'rtl' | 'ltr';
type OnAttachedEvent = Readonly<{}>;
type OnDetachedEvent = Readonly<{}>;
type OnPressHeaderBarButtonItemEvent = Readonly<{
buttonId: string;
}>;
type OnPressHeaderBarButtonMenuItemEvent = Readonly<{
menuId: string;
}>;
type BackButtonDisplayMode = 'minimal' | 'default' | 'generic';
type BlurEffect = 'none' | 'extraLight' | 'light' | 'dark' | 'regular' | 'prominent' | 'systemUltraThinMaterial' | 'systemThinMaterial' | 'systemMaterial' | 'systemThickMaterial' | 'systemChromeMaterial' | 'systemUltraThinMaterialLight' | 'systemThinMaterialLight' | 'systemMaterialLight' | 'systemThickMaterialLight' | 'systemChromeMaterialLight' | 'systemUltraThinMaterialDark' | 'systemThinMaterialDark' | 'systemMaterialDark' | 'systemThickMaterialDark' | 'systemChromeMaterialDark';
type UserInterfaceStyle = 'unspecified' | 'light' | 'dark';
export interface NativeProps extends ViewProps {
onAttached?: CT.DirectEventHandler<OnAttachedEvent>;
onDetached?: CT.DirectEventHandler<OnDetachedEvent>;
backgroundColor?: ColorValue;
backTitle?: string;
backTitleFontFamily?: string;
backTitleFontSize?: CT.Int32;
backTitleVisible?: CT.WithDefault<boolean, 'true'>;
color?: ColorValue;
direction?: CT.WithDefault<DirectionType, 'ltr'>;
hidden?: boolean;
hideShadow?: boolean;
largeTitle?: boolean;
largeTitleFontFamily?: string;
largeTitleFontSize?: CT.Int32;
largeTitleFontWeight?: string;
largeTitleBackgroundColor?: ColorValue;
largeTitleHideShadow?: boolean;
largeTitleColor?: ColorValue;
translucent?: boolean;
title?: string;
titleFontFamily?: string;
titleFontSize?: CT.Int32;
titleFontWeight?: string;
titleColor?: ColorValue;
disableBackButtonMenu?: boolean;
backButtonDisplayMode?: CT.WithDefault<BackButtonDisplayMode, 'default'>;
hideBackButton?: boolean;
backButtonInCustomView?: boolean;
blurEffect?: CT.WithDefault<BlurEffect, 'none'>;
topInsetEnabled?: boolean;
headerLeftBarButtonItems?: CT.UnsafeMixed[];
headerRightBarButtonItems?: CT.UnsafeMixed[];
onPressHeaderBarButtonItem?: CT.DirectEventHandler<OnPressHeaderBarButtonItemEvent>;
onPressHeaderBarButtonMenuItem?: CT.DirectEventHandler<OnPressHeaderBarButtonMenuItemEvent>;
synchronousShadowStateUpdatesEnabled?: CT.WithDefault<boolean, false>;
userInterfaceStyle?: CT.WithDefault<UserInterfaceStyle, 'unspecified'>;
}
declare const _default: import("react-native").HostComponent<NativeProps>;
export default _default;
//# sourceMappingURL=ScreenStackHeaderConfigNativeComponent.d.ts.map