react-native-counter
react-native-counter copied to clipboard
Cannot read property 'number' of undefined
not working...
just import Counter from react-native-counter
adding to render:
<Counter end={45} start={0} time={1000} digits={0} easing="linear" />
Hey @GalAmitai, while the default npm package reference isn't updated, you can fix this issue by replacing your current react-native-counter config at package.json by this:
"react-native-counter": "git+https://github.com/Kerumen/react-native-counter#8d25ef92488b03e1276e102f81cf5a8051d34157",
Replace this code: import {PropTypes} from 'react';
with this one: import PropTypes from 'prop-types';
and it works!