This PR fixes an issue where types for hoist-non-react-statics are not correctly resolved when other dependency depends on v2 of @types/hoist-non-react-statics. It is happening in projects using react-native-paper and react-navigation quite often and this PR aims to fix this by removing @types/hoist-non-react-statics dependency and replacing the types with a copy placed directly inside this project.
Summary
This PR fixes an issue where types for hoist-non-react-statics are not correctly resolved when other dependency depends on v2 of @types/hoist-non-react-statics. It is happening in projects using
react-native-paper
andreact-navigation
quite often and this PR aims to fix this by removing @types/hoist-non-react-statics dependency and replacing the types with a copy placed directly inside this project.