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

RN 0.55 报错 #32

Open
lenvonsam opened this issue Aug 23, 2018 · 2 comments
Open

RN 0.55 报错 #32

lenvonsam opened this issue Aug 23, 2018 · 2 comments

Comments

@lenvonsam
Copy link

RN 0.55 报Undefined is not an object(evaluating ‘_react2.PropTypes.shape’)错误

网上查找了,添加了import PropTypes from 'prop-types';

依然报错,如何解决?

@1111mp
Copy link

1111mp commented Mar 12, 2019

@lenvonsam 去掉PropTypes.shape().isRequired后面的.isRequired

@runningcapao
Copy link

RN 0.55 报Undefined is not an object(evaluating ‘_react2.PropTypes.shape’)错误

网上查找了,添加了import PropTypes from 'prop-types';

依然报错,如何解决?

安卓和iOS的js同时导入你弄得那个头文件,就可以了,我刚解决。

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

3 participants