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

React 15.5 moved PropTypes to separate package

Open kengorab opened this issue 8 years ago • 0 comments

In versions of React newer than 15.5, PropTypes is no longer exported and has been moved to the prop-types package. Details here: https://reactjs.org/blog/2017/09/26/react-v16.0.html#packaging

The fix for this should be simple: add the prop-types package as a dependency (as is recommended by their docs) and do

import PropTypes from 'prop-types'

rather than

import { PropTypes } from 'react'

kengorab avatar Nov 28 '17 02:11 kengorab