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

Cannot read property 'number' of undefined #8

Open
GalAmitai opened this issue Apr 13, 2018 · 2 comments
Open

Cannot read property 'number' of undefined #8

GalAmitai opened this issue Apr 13, 2018 · 2 comments

Comments

@GalAmitai
Copy link

GalAmitai commented Apr 13, 2018

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

@igorrfc
Copy link

igorrfc commented Oct 16, 2018

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

@Script-Sage28
Copy link

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

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

and it works!

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

3 participants