react-native-canvas
react-native-canvas copied to clipboard
Overscroll indicators shown
Hello, How can I get rid of the overscroll indicators (Android 9)? Please have a look at the video attached. My code:
export default function App() {
return (
<SafeAreaView
style={{
backgroundColor: "yellow",
flex: 1,
padding: 30
}}
>
<Canvas
ref={canvas => {
if (canvas) {
canvas.height = 300;
canvas.width = 350;
const ctx = canvas.getContext("2d");
ctx.fillRect(0, 0, canvas.width, canvas.height);
}
}}
/>
</SafeAreaView>
);
};
https://user-images.githubusercontent.com/6296813/137630203-f9dfa143-9527-483f-8c37-1d397178d421.mp4
That's only a workaround, but in my case setting the parent view pointerEvents
to none
solved it.
@RobinBobin do you think it should be added to the library?
It might seem strange, but I doubt. Imagine someone needs it for a mysterious reason 🙂. But I'm pretty sure the Readme should contain the info how to disable it.