After deleting and reinstalling my node_modules folder, I'm facing an issue that I don't understand in LayoutPropTypes.js file.
In node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js
The following variable is undefined : var ReactPropTypes = require('React').PropTypes;
react-native: 0.45.1 react: 16.0.0-alpha.12
React.PropTypes is now deprecated:
Note: React.PropTypes is deprecated as of React v15.5. Please use the prop-types library instead.
You need to add the prop-types package separately now. The error most likely just started to show up because you deleted your node_modules
folder and then reinstalled everything which upgraded your react
version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With