react-native-drag-drop icon indicating copy to clipboard operation
react-native-drag-drop copied to clipboard

undefined is not a function evaluating '_react.default.PropTypes.func'

Open omars94 opened this issue 6 years ago • 1 comments

upon loading the example im getting an error

undefined is not an object (evaluating '_react.default.PropTypes.func')

do i need to npm install this package or just add the js and lib files?

omars94 avatar Jul 23 '18 12:07 omars94

You can find your answer on StackOverflow

You will need prop-types

import PropTypes from 'prop-types'
// ...
static propTypes = {
    onDragStart: PropTypes.func, // instead of React.PropTypes.func
    onDragEnd: PropTypes.func,
}
// ...

pistou avatar Oct 12 '18 12:10 pistou