react-native-audio-streaming icon indicating copy to clipboard operation
react-native-audio-streaming copied to clipboard

react 16 Deprecated React.PropTypes

Open zkeyword opened this issue 7 years ago • 4 comments
trafficstars

"react": "^16.2.0", "react-native": "^0.51.0",

zkeyword avatar Jan 25 '18 08:01 zkeyword

Have you installed using npm command? I had the same problem because it isn't the last version instead use the last github repository version that resolve the proptypes deprecation.

UPDATE: You can find the answer here: #issues129

lucalas avatar Feb 01 '18 20:02 lucalas

yes, i installed using npm command

zkeyword avatar Mar 08 '18 01:03 zkeyword

I'm getting this error (when using Player component)

Cannot read property 'string' of undefined

this is from

Player.propTypes = {
    url: React.PropTypes.string.isRequired
};

andrejkovacik avatar May 18 '18 17:05 andrejkovacik

download prop-types package from node package manager and then import PropTypes from 'prop-types' and change React.PropTypes.string.isRequired to PropTypes.string.isRequired

manishkumar17963 avatar Oct 03 '19 05:10 manishkumar17963