Preventing React-Navigation Multiple Screen Instances

Kuldeep Grewal
1 min readJun 17, 2018

--

A quick solution to problem faced in react-navigation Prevent navigating twice when clicking a button quickly #271

NOTE: This is a work around for react-navigation (v1), in v2 this issue is fixed.

Content

  • MultiTapHandler
  • Examples
  • Conclusion

MultiTapHandler

The concept that saves the day is called throtteling.

Examples

With React

Without React

Conclusion

Thank you for reading this post — I hope you found this helpful. You can find me on GitHub, LinkedIn and CodeMentor and here. If you have any questions, feel free to reach out to me!

Want to read more?

--

--