react-native-canvas icon indicating copy to clipboard operation
react-native-canvas copied to clipboard

Overscroll indicators shown

Open RobinBobin opened this issue 3 years ago • 3 comments

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

RobinBobin avatar Oct 17 '21 13:10 RobinBobin

That's only a workaround, but in my case setting the parent view pointerEvents to none solved it.

RobinBobin avatar Oct 18 '21 20:10 RobinBobin

@RobinBobin do you think it should be added to the library?

iddan avatar Dec 17 '21 21:12 iddan

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.

RobinBobin avatar Dec 17 '21 21:12 RobinBobin