On iOS everything works fine. On Android the chart completely blocks the scrollview gesture. How can i fix this?
How can you fix it?
@danieldelouya , I'm also facing this issue. Please help
@danieldelouya do you have a workaround?
@liuruizhe728 @ShaikhKabeer
I found a workaround
<View>
<VictoryPie />
{/* Andoid scroll fix */}
<View
style={{
zIndex: 9999,
position: "absolute",
width: "100%",
height: "100%"
}}
/>
</View>
I would like to add a (in my opinion) more clean solution, as reported here.
Just for reference, the comment suggests to add pointerEvents="none" to the surrounding View.
just got bitten by this (both ios and android) @lorenzosfarra answer fixed it for me.
in my case i have a chart inside a react-scrollable-tab-view-tab
the behaviour is very inconsistent, some tabs with scrollview work (eg the scroll works after going to a new tab), some don't (eg scroll is blocked)
there's definitely an issue .
Most helpful comment
I would like to add a (in my opinion) more clean solution, as reported here.
Just for reference, the comment suggests to add
pointerEvents="none"to the surroundingView.