react-native-multi-slider icon indicating copy to clipboard operation
react-native-multi-slider copied to clipboard

Please remove deprecated ViewPropTypes

Open orestis-z opened this issue 5 years ago • 7 comments

PropStyles are deprecated in the current RN version. Please remove them. Otherwise compatibility with the current react-native-web (1.12.0) is broken as it has completely removed PropTypes

orestis-z avatar Feb 06 '20 15:02 orestis-z

All right! What did react-native-web replace them with? Flow? Ts?

ptomasroos avatar Feb 07 '20 12:02 ptomasroos

I'm not very familiar with that topic. But check out: https://github.com/necolas/react-native-web/releases/tag/0.12.0

See especially:

Remove prop types exports from package. These are deprecated in React Native and introduce significant DEV time performance cost. Flow types are now preferred (1ad1693)

orestis-z avatar Feb 08 '20 13:02 orestis-z

Flow types then, I will see if I can fix this until the next release!

ptomasroos avatar Feb 08 '20 13:02 ptomasroos

Any recommended workaround for the time being?

zaunaf avatar Feb 09 '20 03:02 zaunaf

@zaunaf either set alias for proptypes in your webpack config file or check out https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types

orestis-z avatar Feb 09 '20 09:02 orestis-z

Thanks for the tips in this thread, i will try to move to flow types in the coming months

ptomasroos avatar Feb 21 '20 07:02 ptomasroos

Hi, I'm updating a RN mobile app and I'm getting errors like this: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. Is there any update about this? Thanks!

gcornejo98 avatar Dec 24 '22 01:12 gcornejo98