From 611998248cf7e4864dd0429707c2620ae3c35dbf Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Mon, 16 Oct 2023 12:26:19 +0200 Subject: [PATCH] add return type to hoc --- src/components/withNavigation.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/withNavigation.tsx b/src/components/withNavigation.tsx index c0f7d9685849..c5842fdacc44 100644 --- a/src/components/withNavigation.tsx +++ b/src/components/withNavigation.tsx @@ -6,7 +6,9 @@ type WithNavigationProps = { navigation: NavigationProp; }; -export default function withNavigation(WrappedComponent: ComponentType>) { +export default function withNavigation( + WrappedComponent: ComponentType>, +): (props: Omit, ref: ForwardedRef) => React.JSX.Element | null { function WithNavigation(props: Omit, ref: ForwardedRef) { const navigation = useNavigation(); return (