diff --git a/packages/react-navigation/flow/react-navigation.js b/packages/react-navigation/flow/react-navigation.js index 213de866..d9896b75 100644 --- a/packages/react-navigation/flow/react-navigation.js +++ b/packages/react-navigation/flow/react-navigation.js @@ -332,12 +332,12 @@ declare module 'react-navigation' { navigationOptions?: ?NavigationScreenConfig, }; - declare export type NavigationRouteConfig = - | NavigationComponent - | { - navigationOptions?: NavigationScreenConfig<*>, - path?: string, - } & NavigationScreenRouteConfig; + declare export type NavigationRouteConfig = + | NavigationComponent + | ({ + navigationOptions?: NavigationScreenConfig<*>, + path?: string, + } & NavigationScreenRouteConfig); declare export type NavigationScreenRouteConfig = | NavigationComponent diff --git a/packages/react-navigation/package.json b/packages/react-navigation/package.json index 74a66b0b..fc25ceb9 100644 --- a/packages/react-navigation/package.json +++ b/packages/react-navigation/package.json @@ -72,6 +72,10 @@ "modulePathIgnorePatterns": ["examples"] }, "lint-staged": { - "*.js": ["eslint --fix", "git add"] + "*.js": [ + "eslint --fix", + "prettier --write flow/react-navigation.js", + "git add" + ] } }