react-native-pull-refresh icon indicating copy to clipboard operation
react-native-pull-refresh copied to clipboard

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

Open akaytatsu opened this issue 6 years ago • 6 comments

image

akaytatsu avatar Nov 06 '19 14:11 akaytatsu

Same issue

  "dependencies": {
    "lottie-ios": "3.1.3",
    "lottie-react-native": "^3.3.1",
    "react": "16.9.0",
    "react-native": "0.61.4",
    "react-native-pull-refresh": "^1.0.0",
    "react-native-reanimated": "^1.4.0"
  },

carl0804 avatar Nov 13 '19 03:11 carl0804

Same issue

  "dependencies": {
    "lottie-ios": "3.1.3",
    "lottie-react-native": "^3.3.1",
    "react": "16.9.0",
    "react-native": "0.61.4",
    "react-native-pull-refresh": "^1.0.0",
    "react-native-reanimated": "^1.4.0"
  },

Solved, import PropTypes from 'prop-types' in AnimatedPullToRefresh.js

carl0804 avatar Nov 13 '19 04:11 carl0804

can someone make a pull request?

ethanyuwang avatar Dec 19 '19 23:12 ethanyuwang

same issue

brextonpham avatar Feb 06 '20 02:02 brextonpham

I add import PropTypes from 'prop-types' in AnimatedPullToRefresh.js but still reporting the wrong undefined is not an object

elliet1 avatar Mar 04 '20 07:03 elliet1

In case anyone is still struggling with this issue - On top of adding the new import statement to AnimatedPullToRefresh.js:

'import PropTypes from 'prop-types' in AnimatedPullToRefresh.js'

You also need to go through and replace all instances of 'React.PropTypes' with just 'PropTypes'

EDIT: It seems this issue has actually already been taken care of in the repo, just hasn't been updated in the npm package yet...

FellowshipOfThePing avatar Sep 02 '20 23:09 FellowshipOfThePing