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

Cannot read property 'number' of undefined

Open GalAmitai opened this issue 7 years ago • 2 comments

not working... just import Counter from react-native-counter adding to render: <Counter end={45} start={0} time={1000} digits={0} easing="linear" />

GalAmitai avatar Apr 13 '18 19:04 GalAmitai

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",

igorrfc avatar Oct 16 '18 12:10 igorrfc

Replace this code: import {PropTypes} from 'react';

with this one: import PropTypes from 'prop-types';

and it works!

Script-Sage28 avatar Feb 25 '20 17:02 Script-Sage28