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

Issue with StyleSheet.create() #79

Closed
lifeiscontent opened this issue Apr 1, 2018 · 2 comments
Closed

Issue with StyleSheet.create() #79

lifeiscontent opened this issue Apr 1, 2018 · 2 comments

Comments

@lifeiscontent
Copy link

when accessing properties from StyleSheet.create() it will return a number instead of an object. in the propType imageStyle its expecting an object which isn't 100% compatible. you should also say it can be a number.

@oblador
Copy link
Owner

oblador commented May 30, 2018

Hi, the prop types already says PropTypes.any, maybe you're on an old version?

@antoinegrelard
Copy link

antoinegrelard commented Jun 25, 2018

I think he's talking about the imageStyle prop, which still has a PropTypes.object propType. I have the same issue and it's on the imageStyle prop that it is happening :)

(I'm on 1.1.1, here's the file on the latest version : https://github.com/oblador/react-native-image-progress/blob/v1.1.1/index.js)

oblador added a commit that referenced this issue Jul 19, 2018
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