删除并重新安装我的node_modules文件夹后,我遇到了一个LayoutPropTypes中我不理解的问题.js文件.
node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js
年后
react :0.45.1
删除并重新安装我的node_modules文件夹后,我遇到了一个LayoutPropTypes中我不理解的问题.js文件.
node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js
年后
react :0.45.1
React.PropTypes is now deprecated:
注意:做出react .PropTypes从React v15开始就不推荐使用.5.请使用
你现在需要单独添加prop-types个包.这个错误很可能刚开始出现,因为你删除了node_modules
文件夹,然后重新安装了所有升级了react
版本的东西.