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

PropTypes aren't updated for React v16 #1

Open
mstelte opened this issue Dec 5, 2017 · 1 comment
Open

PropTypes aren't updated for React v16 #1

mstelte opened this issue Dec 5, 2017 · 1 comment

Comments

@mstelte
Copy link

mstelte commented Dec 5, 2017

As the title says, I encountered problems with how PropTypes are used by this library. It would be really nice if they could be updated, since everyone I know who uses this library (including me) had to update it manually after using npm install.

@mstelte mstelte changed the title PropTypes aren't pdated for React v16 PropTypes aren't updated for React v16 Dec 6, 2017
@Sefito
Copy link

Sefito commented Feb 1, 2018

Hi guys just 2 things to solve it:
First, go to node_modules/react-accelerometer/dist/react-accelerometer.module.js
and add import PropTypes from 'prop-types';
Second delete "React." from all "React.PropTypes"

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

2 participants