Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addListener isn't working #44

Open
QuanNguyenBtaskee opened this issue Jun 20, 2024 · 3 comments
Open

addListener isn't working #44

QuanNguyenBtaskee opened this issue Jun 20, 2024 · 3 comments

Comments

@QuanNguyenBtaskee
Copy link

QuanNguyenBtaskee commented Jun 20, 2024

When I use addListener to listen event user take screenshot. It's not show alert.
This's my code

 useEffect(() => {
    const subscription = addListener(() => {
      console.log('Screenshot taken');
      alert('Screenshot taken');
    });
    return () => {
      subscription.remove();
    };
  }, []);
  
@QuanNguyenBtaskee
Copy link
Author

I don't want to prevent user screenshot. I just trigger a screenshot to make sure the user gets it done.

@TrejoCode
Copy link

TrejoCode commented Jun 26, 2024

I don't want to prevent user screenshot. I just trigger a screenshot to make sure the user gets it done.

RN versión, Android or iOS, versions? Bro, give all details.

https://medium.com/nyc-planning-digital/writing-a-proper-github-issue-97427d62a20f

@Unich-HieuDT
Copy link

Hi @QuanNguyenBtaskee
Have you fixed it yet? I am also having this issue on Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants