UNPKG

1.08 kBTypeScriptView Raw
1import type { NavigationState, ParamListBase, PartialState, Route } from '@react-navigation/routers';
2import type { NavigationProp, RouteConfigComponent } from './types';
3type Props<State extends NavigationState, ScreenOptions extends {}> = {
4 screen: RouteConfigComponent<ParamListBase, string> & {
5 name: string;
6 };
7 navigation: NavigationProp<ParamListBase, string, string | undefined, State, ScreenOptions>;
8 route: Route<string>;
9 routeState: NavigationState | PartialState<NavigationState> | undefined;
10 getState: () => State;
11 setState: (state: State) => void;
12 options: object;
13 clearOptions: () => void;
14};
15/**
16 * Component which takes care of rendering the screen for a route.
17 * It provides all required contexts and applies optimizations when applicable.
18 */
19export default function SceneView<State extends NavigationState, ScreenOptions extends {}>({ screen, route, navigation, routeState, getState, setState, options, clearOptions, }: Props<State, ScreenOptions>): JSX.Element;
20export {};
21//# sourceMappingURL=SceneView.d.ts.map
\No newline at end of file