Ideally we want to call a handler in that case. Otherwise we are unable to know if the user pressed the tooltip.
Often times you have additional logic which e.g. shows numbers outside of the actual chart that depend on the selected index.
I suspect we need to add something like onDismiss(), since changing onTooltipSelect to allow for undefined input will break previous versions.
Ideally we want to call a handler in that case. Otherwise we are unable to know if the user pressed the tooltip. Often times you have additional logic which e.g. shows numbers outside of the actual chart that depend on the selected index.
I suspect we need to add something like onDismiss(), since changing onTooltipSelect to allow for undefined input will break previous versions.
We then could call onDismiss here to be able to detect this change. @N1ghtly If you are fine with the change I can also create a PR for this. https://github.com/N1ghtly/react-native-responsive-linechart/blob/1f2c9cdcbf69d4632dbaa2b086926760e126bff5/src/Line.tsx#L105