genexu / react-native-pie-chart

Simple pie chart module for your React Native app
MIT License
109 stars 47 forks source link

Wedge.render(): A valid Rect element (or null) must be returned #9

Closed bingxin-xia closed 7 years ago

bingxin-xia commented 7 years ago

image

Hi, I got this issue while I tried to render a piechart, and the series is [0, 100] or [100, 0]. I found the code in wedge.js file like below: image

It's wired to return nothing in render method.

bingxin-xia commented 7 years ago

The version I used in my project is 1.0.9, after upgrade version to 1.0.11, the issue has gone, thank you, I will close the issue.

huangxiaohao commented 6 years ago

@Bing-Xia hi, I have the same issue with you. But when I upgrade , the version was 1.0.12 , and my RN version is 0.41.2, it doesn't work. so I want to know what your RN version is ? and I tried to use $ npm install react-native-pie-chart@1.0.11 --save ,but it doesn't work too. Thank you!!!!!

huangxiaohao commented 6 years ago

hi, I think I've solved the problem, upgrade version to 1.0.11, the issue has gone, thank you!!!