wuyunqiang / ReactNativeUtil

30 stars 6 forks source link

PropTypes引入报错 #20

Open wuyunqiang opened 6 years ago

wuyunqiang commented 6 years ago

import PropTypes from 'prop-types'; static propTypes = { //需要的类型 cx: PropTypes.xxx.isRequired, }; static defaultProps = { cx: 0, //类型默认值 };