I need to update the project to React Native 0.47. However, that will break anyone using a version of React Native lower than 0.47. Yes, we have seen this before with 0.25.
React Native has removed PropTypes as opposed to deprecating them, as well as createClass. This is in-line with React 16. While we do not use createClass, we do use PropTypes.
We are supposed to import PropTypes from a new library called prop-types. Changing this code and adding the dependency will break all code running React Native 0.25 -> 0.46.
Another (poor) option is to remove (or comment out) all PropType checking until it can be reasonably assumed that the world has moved on from the older versions.
I am not sure which path to take and will be investigating how other vendors are handling this.
I need to update the project to React Native 0.47. However, that will break anyone using a version of React Native lower than 0.47. Yes, we have seen this before with 0.25.
React Native has removed
PropTypes
as opposed to deprecating them, as well ascreateClass
. This is in-line with React 16. While we do not usecreateClass
, we do usePropTypes
.We are supposed to import
PropTypes
from a new library called prop-types. Changing this code and adding the dependency will break all code running React Native 0.25 -> 0.46.Another (poor) option is to remove (or comment out) all PropType checking until it can be reasonably assumed that the world has moved on from the older versions.
I am not sure which path to take and will be investigating how other vendors are handling this.
Comments are welcome.