Compare commits

..

5 Commits

Author SHA1 Message Date
Brent Vatne
2e34cb1e38 chore: release 4.0.10 2019-09-25 17:54:13 -07:00
Brent Vatne
188bd33442 fix: update link to docs page from deprecation messages 2019-09-25 17:47:20 -07:00
Ashoat Tevosyan
94d6ccada4 [flow] Remove Flow libdef from repo (#6327) 2019-09-25 17:45:49 -07:00
satyajit.happy
246f4b0e15 chore: release 4.0.9 2019-09-24 13:23:53 +02:00
satyajit.happy
c828050ba1 fix: fix types for switch navigator. fixes #6324 2019-09-24 13:16:11 +02:00
5 changed files with 9 additions and 1325 deletions

View File

@@ -1,5 +1,4 @@
coverage/
flow/
node_modules/
lib/
build/

1310
flow/react-navigation.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "4.0.8",
"version": "4.0.10",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"types": "typescript/react-navigation.d.ts",

View File

@@ -2,7 +2,7 @@
const throwError = (message, page) => {
throw new Error(
`${message}. See https://reactnavigation.org/docs/4.x/${page}.html for more details.`
`${message}. See https://reactnavigation.org/docs/${page}.html for more details.`
);
};

View File

@@ -675,19 +675,14 @@ declare module 'react-navigation' {
state: { nav: NavigationState | null };
}
export interface SwitchNavigatorConfig {
initialRouteName: string;
resetOnBlur?: boolean;
paths?: NavigationPathsConfig;
backBehavior?: 'none' | 'initialRoute';
}
export function createSwitchNavigator(
routeConfigMap: NavigationRouteConfigMap<
SwitchNavigatorConfig,
NavigationScreenProp<NavigationRoute>
>,
switchConfig?: SwitchNavigatorConfig
routeConfigMap: NavigationRouteConfigMap<{}, NavigationSwitchProp>,
switchConfig?: CreateNavigatorConfig<
{},
NavigationSwitchRouterConfig,
{},
NavigationSwitchProp
>
): NavigationNavigator<{}, NavigationProp<NavigationState>>;
/**