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.PropTypes.bool") #189

Open
15738039217 opened this issue Jul 30, 2018 · 5 comments
Open

Comments

@15738039217
Copy link

我把src文件里的ProTypes 都换成import PropTypes from 'prop-types'
还是这样的错误,怎么处理?!

@15738039217
Copy link
Author

版本
"react-native-chart": "git+https://github.com/tomauty/react-native-chart.git#2.0",
"prop-types": "^15.6.2",
"react": "16.3.1",
"react-native": "0.55.3",

@hohien
Copy link

hohien commented Aug 3, 2018

have you fixed it? I have got the same error

@EnettyTech
Copy link

same error

1 similar comment
@matthewjj
Copy link

same error

@phnamdev
Copy link

phnamdev commented Nov 8, 2018

  • Go to ProjectFolder\node_modules\react-native-chart\dist
  • Open js file
  • Add this line: import PropTypes from 'prop-types';
  • Replace All "_react.PropTypes" by "Protypes"

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

5 participants