I'm using the new React Native functional components with hooks but I'm not able to update the data of the chart using the
this.chart.setOption(option); on a state change event. I tried do a console log inside the additionalCode parameter but the this object is undefined. I don't know how to reference the echart object using RN Hooks, can someone help me out?
I'm using the new React Native functional components with hooks but I'm not able to update the data of the chart using the
this.chart.setOption(option);
on a state change event. I tried do a console log inside theadditionalCode
parameter but thethis
object is undefined. I don't know how to reference the echart object using RN Hooks, can someone help me out?