coinjar/react-native-wagmi-charts

[Feature request] Ability to specify `minDurationMs` for LineChartCursor gesture handler

Gordeev1 opened this issue · 6 comments

Thank you for the amazing library.

It would be quite useful to be able to override gesture handler config of LineChartCursor from LineChart.CursorLine

<LineChart.CursorLine
    {/* So chart doesn't conflict with navigation back gesture and scroll views  */}
    minDurationMs={300}
/>

This is already implemented.

Ah I see they forgot to forward the props onto LineChartCursor.

If you use LineChart.Cursor directly, you're able to do this. So you might want to use that and add your own line by forking their line for now.

My PR at #120 would fix this.

@nandorojo Could you please update the readme, to mention minDurationMs ?

@daginfinity can you?