react-naive-highly-customizable-action-sheet icon indicating copy to clipboard operation
react-naive-highly-customizable-action-sheet copied to clipboard

新的版本会报错 Prop-Types are now a separately maintained library

Open zcx81 opened this issue 7 years ago • 0 comments

Prop-Types are now a separately maintained library named prop-types Here is the explanation from react-docs: https://reactjs.org/docs/typechecking-with-proptypes.html You have to import them as:

import React from 'react'; import PropTypes from 'prop-types'

zcx81 avatar Dec 07 '17 02:12 zcx81