react-native-chart icon indicating copy to clipboard operation
react-native-chart copied to clipboard

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

Open zhangyingdong1995 opened this issue 7 years ago • 5 comments

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

zhangyingdong1995 avatar Jul 30 '18 05:07 zhangyingdong1995

版本 "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",

zhangyingdong1995 avatar Jul 30 '18 05:07 zhangyingdong1995

have you fixed it? I have got the same error

hohien avatar Aug 03 '18 06:08 hohien

same error

EnettyTech avatar Sep 21 '18 07:09 EnettyTech

same error

matthewjj avatar Oct 05 '18 12:10 matthewjj

  • 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"

phnamdev avatar Nov 08 '18 01:11 phnamdev