Open manav-kasare opened 3 years ago
me to how to fix android not work , ios work
@methineeinkan same android crash on release in react native version 0.64.2
[Android] How to fix it ? My release app is crashing.
@methineeinkan @thipmanus @NongKaittong Make sure to only draw the chart, when you have more than 2 data points. Otherwise android crashes with an exception when drawing the svg.
android app crashed on release build when the line graph component is rendered. Works fine on android debug. Also works fine on iOS.
here's my component
Calling like this
<LineGraph data={likes} key="likes" />
Setting likes like this
setLikes({ data: _likes, yMin: getMin(_likes), yMax: getMax(_likes), xMax, xMin, });