1 | import * as React from 'react';
|
2 | import { NavigationState as StackNavigationState } from 'react-navigation';
|
3 | import type { Route, StackNavigationHelpers, StackNavigationConfig, StackDescriptorMap } from '../../types';
|
4 | declare type Props = StackNavigationConfig & {
|
5 | state: StackNavigationState;
|
6 | navigation: StackNavigationHelpers;
|
7 | descriptors: StackDescriptorMap;
|
8 | screenProps: unknown;
|
9 | };
|
10 | declare type State = {
|
11 | routes: Route<string>[];
|
12 | previousRoutes: Route<string>[];
|
13 | previousDescriptors: StackDescriptorMap;
|
14 | openingRouteKeys: string[];
|
15 | closingRouteKeys: string[];
|
16 | replacingRouteKeys: string[];
|
17 | descriptors: StackDescriptorMap;
|
18 | };
|
19 | export default class StackView extends React.Component<Props, State> {
|
20 | static getDerivedStateFromProps(props: Readonly<Props>, state: Readonly<State>): {
|
21 | routes: import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>[];
|
22 | previousRoutes: import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>[];
|
23 | descriptors: StackDescriptorMap;
|
24 | previousDescriptors: StackDescriptorMap;
|
25 | openingRouteKeys?: undefined;
|
26 | closingRouteKeys?: undefined;
|
27 | replacingRouteKeys?: undefined;
|
28 | } | {
|
29 | routes: import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>[];
|
30 | previousRoutes: import("react-navigation").NavigationRoute<import("react-navigation").NavigationParams>[];
|
31 | previousDescriptors: StackDescriptorMap;
|
32 | openingRouteKeys: string[];
|
33 | closingRouteKeys: string[];
|
34 | replacingRouteKeys: string[];
|
35 | descriptors: StackDescriptorMap;
|
36 | };
|
37 | state: State;
|
38 | private getGesturesEnabled;
|
39 | private getPreviousRoute;
|
40 | private renderScene;
|
41 | private renderHeader;
|
42 | private handleTransitionComplete;
|
43 | private handleOpenRoute;
|
44 | private handleCloseRoute;
|
45 | private handleTransitionStart;
|
46 | private handleTransitionEnd;
|
47 | private handleGestureStart;
|
48 | private handleGestureEnd;
|
49 | private handleGestureCancel;
|
50 | render(): JSX.Element;
|
51 | }
|
52 | export {};
|