UNPKG

526 BTypeScriptView Raw
1import type { NavigationState, ParamListBase } from '@react-navigation/routers';
2
3import type { EventMapBase, RouteConfig } from './types';
4
5/**
6 * Empty component used for specifying route configuration.
7 */
8export default function Screen<
9 ParamList extends ParamListBase,
10 RouteName extends keyof ParamList,
11 State extends NavigationState,
12 ScreenOptions extends {},
13 EventMap extends EventMapBase
14>(_: RouteConfig<ParamList, RouteName, State, ScreenOptions, EventMap>) {
15 /* istanbul ignore next */
16 return null;
17}