Skip to content

Commit a7002f2

Browse files
admmasterssatya164
authored andcommitted
[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`.
1 parent 4f1bd4c commit a7002f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/withNavigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import hoistStatics from 'hoist-non-react-statics';
55

6-
import { ContextWithNavigation } from '../TypeDefinition';
6+
import type { ContextWithNavigation } from '../TypeDefinition';
77

88
export default function withNavigation(Component: ReactClass<T>) {
99
const componentWithNavigation = (props: T, { navigation }: ContextWithNavigation) => (

0 commit comments

Comments
 (0)