react-native-css-gradient icon indicating copy to clipboard operation
react-native-css-gradient copied to clipboard

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

Open lpetkov-sw opened this issue 6 years ago • 2 comments

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

lpetkov-sw avatar Nov 25 '19 13:11 lpetkov-sw

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!

catalinmiron avatar Nov 25 '19 15:11 catalinmiron

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.

lpetkov-sw avatar Nov 25 '19 15:11 lpetkov-sw