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

navigationButtonPressed trigger multiple times when push screen????

Open suupham2506 opened this issue 1 year ago • 3 comments

🐛 Bug Report

I push to a screen multiple times name "Profile" with rightButtons id more, when press more button, I trigger to show an ovelay.

Expected: trigger 1 time only, but currently it triggers multiple times. For example: I push to Profile screen 3 times, it will show overlay 3 times when press on more button.

Your Environment

  • React Native Navigation version: 7.28.0
  • React Native version: 0.68
  • Platform(s) (iOS, Android, or both?): both platform
  • Device info (Simulator/Device? OS version? Debug/Release?): both simulator and real device

Reproducible Demo

Simulator Screen Shot - iPhone 12 mini - 2022-08-08 at 18 38 43

Are you willing to resolve this issue by submitting a Pull Request?

  • ✅   Yes, I have the time, and I know how to start.
  • ✖️   Yes, I have the time, but I don't know how to start. I would need guidance.
  • ✖️   No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

suupham2506 avatar Aug 08 '22 04:08 suupham2506

@wixmobile Can you help me on this?

suupham2506 avatar Aug 08 '22 04:08 suupham2506

Is there any maintainer for this module?

suupham2506 avatar Aug 12 '22 03:08 suupham2506

@suupham2506 you are probably calling the bindComponent method in componentDidMount or something due to which it is called multiple times and hence added multiple event listeners. Without looking at the code, it is hard to tell what exactly is wrong.

varungupta85 avatar Aug 22 '22 08:08 varungupta85

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Feb 19 '23 10:02 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Mar 14 '23 12:03 stale[bot]