3
votes

I am using react-native-navigation library to navigate through screens in my app, the problem is that if I navigate to a screen by pressing a button and press fast multiple times then that particular screen opens multiple times. My question is if it's there any possibility to check if a screen exists in the stack before pushing it, I wonder if exist any method or property from which I can get the stack with the components ids.

PS: I don't want to disable the button after first tap.

1
did you get the any solution?Harleen Kaur Arora

1 Answers

0
votes

You can throttle the function where the button click event is handled. lodash.throttle can be used quite easily for this.