xanderdeseyn / react-native-responsive-linechart

A customizable and responsive line or area chart for react-native
https://react-native-responsive-linechart.surge.sh
MIT License
203 stars 47 forks source link

Tooltip is not working #33

Closed blpcastanheira closed 4 years ago

blpcastanheira commented 4 years ago

I'm trying to use tooltip in my chart but its not working. The chart is shown, but the tooltip is never displayed. Can you check the chart in demo project? Its not working for me.

Ty

xanderdeseyn commented 4 years ago

Hi @blpcastanheira, I have just checked it and it appears to be working fine. Are you sure you're using the correct chart? Only the 4th one in the Demo application has tooltips enabled.

blpcastanheira commented 4 years ago

Hey @N1ghtly,

I copied this chart (https://github.com/N1ghtly/react-native-responsive-linechart/blob/85cd0672bdfba567048b4bfb4428c6fe7786cb94/demo/App.tsx#L104) from App.tsx.

I'm using the version 5.1.0 and running on Android. I can't test this on iOS.

Ty

xanderdeseyn commented 4 years ago

Seems there is indeed a bug on Android. I'm investigating 👍

blpcastanheira commented 4 years ago

Can you replicate the issue?

xanderdeseyn commented 4 years ago

Yes I was able to replicate it. It turns out to be a rather simple mistake: the demo project did not complete the installation steps for react-native-gesture-handler correctly. Have a look at https://docs.swmansion.com/react-native-gesture-handler/docs/#android. I'm 99% sure that should solve your problem :)

blpcastanheira commented 4 years ago

It worked!! Ty bro :100:

xanderdeseyn commented 4 years ago

Great, closing 🥳