[FLOW] Fix missing "type" in flow import.

Fixes: Named import from module `../TypeDefinition` `ContextWithNavigation` is a type, but not a value. In order to import it, please use `import type`.
This commit is contained in:
Matt Revell 2017-02-10 16:01:01 +00:00 committed by Satyajit Sahoo
parent 4f1bd4c888
commit a7002f2151

View File

@ -3,7 +3,7 @@
import React from 'react'; import React from 'react';
import hoistStatics from 'hoist-non-react-statics'; import hoistStatics from 'hoist-non-react-statics';
import { ContextWithNavigation } from '../TypeDefinition'; import type { ContextWithNavigation } from '../TypeDefinition';
export default function withNavigation(Component: ReactClass<T>) { export default function withNavigation(Component: ReactClass<T>) {
const componentWithNavigation = (props: T, { navigation }: ContextWithNavigation) => ( const componentWithNavigation = (props: T, { navigation }: ContextWithNavigation) => (