Please remove deprecated ViewPropTypes
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
All right! What did react-native-web replace them with? Flow? Ts?
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)
Flow types then, I will see if I can fix this until the next release!
Any recommended workaround for the time being?
@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
Thanks for the tips in this thread, i will try to move to flow types in the coming months
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!