JedWatson / react-hammerjs

ReactJS / HammerJS integration. Support touch events in your React app.
MIT License
937 stars 128 forks source link

Warning: Failed propType: Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types Check the render method of X #85

Open petergab opened 6 years ago

petergab commented 6 years ago

I'm using:

"react": "15.0.1",
"react-dom": "15.0.1",
"react-hammerjs": "1.0.1",

Everything works like a charm, but I get the following error in console:

Warning: Failed propType: Calling PropTypes validators directly is not supported 
by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. 
Read more at http://fb.me/use-check-prop-types Check the render method of X

As described in above documentation:

You might be seeing this message because a component library has updated 
to use prop-types package, but your version of React is incompatible with it.