diff --git a/packages/react-navigation/.circleci/config.yml b/packages/react-navigation/.circleci/config.yml index 681d77d9..33c950f3 100644 --- a/packages/react-navigation/.circleci/config.yml +++ b/packages/react-navigation/.circleci/config.yml @@ -34,7 +34,6 @@ jobs: paths: - ~/.cache/yarn - ~/react-navigation/examples/NavigationPlayground/node_modules - - ~/react-navigation/examples/ReduxExample/node_modules # notify: # webhooks: # - url: https://react-navigation-ci.now.sh diff --git a/packages/react-navigation/examples/NavigationPlayground/package.json b/packages/react-navigation/examples/NavigationPlayground/package.json index c40c3410..cc10f596 100644 --- a/packages/react-navigation/examples/NavigationPlayground/package.json +++ b/packages/react-navigation/examples/NavigationPlayground/package.json @@ -5,7 +5,7 @@ "scripts": { "postinstall": "rm -rf node_modules/react-navigation/node_modules/react-native && rm -rf node_modules/react-navigation/node_modules/@types && rm -rf node_modules/react-navigation/node_modules/examples && rm -rf node_modules/react-navigation/node_modules/react-native-gesture-handler && rm -rf node_modules/react-navigation/node_modules/react", "start": "node node_modules/react-native/local-cli/cli.js start", - "test": "jest", + "test": "jest && tsc", "tsc": "tsc" }, "dependencies": { diff --git a/packages/react-navigation/flow/react-navigation.js b/packages/react-navigation/flow/react-navigation.js index 11bce3d7..56e1778f 100644 --- a/packages/react-navigation/flow/react-navigation.js +++ b/packages/react-navigation/flow/react-navigation.js @@ -407,9 +407,7 @@ declare module 'react-navigation' { NavigationSceneRendererProps & { mode: HeaderMode, router: NavigationRouter, - getScreenDetails: NavigationScene => NavigationScreenDetails< - NavigationStackScreenOptions - >, + getScreenDetails: NavigationScene => NavigationScreenDetails, leftInterpolator: (props: NavigationSceneRendererProps) => {}, titleInterpolator: (props: NavigationSceneRendererProps) => {}, rightInterpolator: (props: NavigationSceneRendererProps) => {}, @@ -660,9 +658,7 @@ declare module 'react-navigation' { onWillBlur?: NavigationEventCallback, onDidBlur?: NavigationEventCallback, }; - declare export var NavigationEvents: React$ComponentType< - _NavigationEventsProps - >; + declare export var NavigationEvents: React$ComponentType<_NavigationEventsProps>; /** * Navigation container @@ -1041,9 +1037,7 @@ declare module 'react-navigation' { */ transitionConfig?: () => TransitionConfig, } & NavigationNavigatorProps; - declare export var CardStackTransitioner: React$ComponentType< - _CardStackTransitionerProps - >; + declare export var CardStackTransitioner: React$ComponentType<_CardStackTransitionerProps>; declare type _CardStackProps = { screenProps?: {}, @@ -1114,9 +1108,7 @@ declare module 'react-navigation' { truncatedTitle?: ?string, width?: ?number, }; - declare export var HeaderBackButton: React$ComponentType< - _HeaderBackButtonProps - >; + declare export var HeaderBackButton: React$ComponentType<_HeaderBackButtonProps>; declare type _DrawerViewProps = { drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open', diff --git a/packages/react-navigation/scripts/test.sh b/packages/react-navigation/scripts/test.sh index 5c9c8a32..6f9318ac 100755 --- a/packages/react-navigation/scripts/test.sh +++ b/packages/react-navigation/scripts/test.sh @@ -4,6 +4,5 @@ set -eo pipefail case $CIRCLE_NODE_INDEX in 0) yarn test && yarn codecov ;; - #1) cd examples/NavigationPlayground && yarn && yarn test ;; - #2) cd examples/ReduxExample && yarn && yarn test ;; + 1) cd examples/NavigationPlayground && yarn && yarn test ;; esac