You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since PropTypes moved to their own library (React 15.5, not sure of the exact version of RN when this happened) the component doesn't work, since it throws an error about undefined values whenever something within React.PropTypes.* is used.
The fix is to use the following in any file where PropTypes is used:
import PropTypes from 'prop-types';
Then replace any declaration of React.PropTypes with PropTypes
This error is initially thrown in /src/switch.js so it definitely needs fixing there first
The text was updated successfully, but these errors were encountered:
I've since seen your code in this repo has implemented the changes mentioned above, but these aren't reflected in npm...
Having run npm view react-native-customisable-switch versions I can see only 0.1.0 is available, which is the version that is downloading... @baderahmed can you please publish a newer version with this fix?
Since PropTypes moved to their own library (React 15.5, not sure of the exact version of RN when this happened) the component doesn't work, since it throws an error about undefined values whenever something within
React.PropTypes.*
is used.The fix is to use the following in any file where PropTypes is used:
Then replace any declaration of
React.PropTypes
withPropTypes
This error is initially thrown in /src/switch.js so it definitely needs fixing there first
The text was updated successfully, but these errors were encountered: