I'm trying to use withNavigationFocus for a component as code been written in Typescript. ,
my component props
interface IScreenProps {
navigation: NavigationScreenProp<NavigationState, IParamsNavigate>;
departments: NavigationNode[] | null;
updateSearchCriteria: (searchCriteria: ISearchCriteria, stack: StackNames) => void;
resetProductState: () => void;
isFocused: boolean;
}
component
class SearchScreen extends React.Component<IScreenProps, IScreenState> {
.....
}
export default connect(mapStateToProps, mapDispatchToProps)( withNavigationFocus(SearchScreen));
there is no build error , still in red line is showing in editor/IDE on searchScreen export. .I have enclosed error i'm facing below.
Please let me know how i can fix this.