Open lenvonsam opened 6 years ago
@lenvonsam 去掉PropTypes.shape().isRequired后面的.isRequired
RN 0.55 报Undefined is not an object(evaluating ‘_react2.PropTypes.shape’)错误
网上查找了,添加了import PropTypes from 'prop-types';
依然报错,如何解决?
安卓和iOS的js同时导入你弄得那个头文件,就可以了,我刚解决。
RN 0.55 报Undefined is not an object(evaluating ‘_react2.PropTypes.shape’)错误
网上查找了,添加了import PropTypes from 'prop-types';
依然报错,如何解决?