-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRouteOptions.ts
40 lines (30 loc) · 1007 Bytes
/
RouteOptions.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { RNINavigatorRouteViewProps } from "../native_components/RNINavigatorRouteView";
// Mirror prop types from `RNINavigatorRouteViewProps`
export type RouteOptions = Pick<RNINavigatorRouteViewProps,
| 'statusBarStyle'
// Transition Config
| 'transitionConfigPush'
| 'transitionConfigPop'
// Navbar Config
| 'routeTitle'
| 'prompt'
| 'largeTitleDisplayMode'
| 'searchBarConfig'
// Navbar item config
| 'navBarButtonBackItemConfig'
| 'navBarButtonLeftItemsConfig'
| 'navBarButtonRightItemsConfig'
// Navbar back button item config
| 'backButtonTitle'
| 'hidesBackButton'
| 'backButtonDisplayMode'
| 'leftItemsSupplementBackButton'
| 'applyBackButtonConfigToCurrentRoute'
// NavigationConfigOverride-related
| 'navBarAppearanceOverride'
| 'navigationBarVisibility'
> & {
routeContainerStyle?: RNINavigatorRouteViewProps['style'];
automaticallyAddHorizontalSafeAreaInsets?: boolean;
allowTouchEventsToPassThroughNavigationBar?: boolean;
};