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

repeating-linear-gradient with width in percentage fails with error. #7

Open
lpetkov-sw opened this issue Nov 25, 2019 · 2 comments
Open

Comments

@lpetkov-sw
Copy link

Hello,

I'm using react-native-css-gradient library for making progressbar background.
When I set width to the repeating-linear-gradient Gradient component in percentage (ex: width: '70%') an error is raised: RangeError: Array size is not a small enough positive integer.

The problem is appearing only if the width is in percentage. Width with fixed number is working properly.

react-native: v0.60

@catalinmiron
Copy link
Owner

Hi @lpetkov-sw,

Thanks for raising this issue. Unfortunately you need to provide a fixed number, not percentage. For now this is a bug which I might possible fix it in the future.
Please let me know if you need anything else.
Thanks!

@lpetkov-sw
Copy link
Author

Thanks for the quick response @catalinmiron ,
I'll use it with fixed number then, but maybe it will be good if you add that in the documentation.
Regards,
Lyubo.

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