Closed vzhovnitsky closed 1 year ago
@vzhovnitsky
Thank you for the PR! However, I believe the flow type ViewProps
is still being used in react-native here
What got deleted was ViewPropType
that used prop-types which is slightly different.
@vzhovnitsky Thank you for the PR! However, I believe the flow type
ViewProps
is still being used in react-native hereWhat got deleted was
ViewPropType
that used prop-types which is slightly different.
Oh, I might have misread, my bad, closing PR then?
@vzhovnitsky no problem! thanks for taking your time trying to improve the package. Closing the PR
The correct fix here is to switch to deprecated-react-native-prop-types or a type system like Typescript. Back in 2018 facebook/react-native started removing PropTypes from React Native. Last year, in 0.68 they introduced a deprecation warning which notified users that the change is coming, and in 0.69 we removed the PropTypes entirely.