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 (