How do I prevent a user to take screenshots in React-Native app? I have read in some comments on some other posted questions people saying that this line of code will prevent screenshots, but where exactly do I have to insert it?
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
Or if there is any other way just let me know.
P.S: I am interested to know only for Android platform.