Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
akaytatsu opened this issue Nov 6, 2019 · 6 comments

Comments

@akaytatsu
Copy link

image

@carl0804
Copy link

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
Copy link

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

@ethanyuwang
Copy link

can someone make a pull request?

@brextonpham
Copy link

same issue

@elliet1
Copy link

elliet1 commented Mar 4, 2020

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

@FellowshipOfThePing
Copy link

FellowshipOfThePing commented Sep 2, 2020

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants