react-native-navigation
react-native-navigation copied to clipboard
navigationButtonPressed trigger multiple times when push screen????
🐛 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
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.
@wixmobile Can you help me on this?
Is there any maintainer for this module?
@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.
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.
The issue has been closed for inactivity.