mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 17:18:09 +00:00
[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:
parent
4f1bd4c888
commit
a7002f2151
@ -3,7 +3,7 @@
|
||||
import React from 'react';
|
||||
import hoistStatics from 'hoist-non-react-statics';
|
||||
|
||||
import { ContextWithNavigation } from '../TypeDefinition';
|
||||
import type { ContextWithNavigation } from '../TypeDefinition';
|
||||
|
||||
export default function withNavigation(Component: ReactClass<T>) {
|
||||
const componentWithNavigation = (props: T, { navigation }: ContextWithNavigation) => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user