timomeh / react-native-material-bottom-navigation

💅🔧👌 a beautiful, customizable and easy-to-use material design bottom navigation for react-native
MIT License
709 stars 127 forks source link

Fixes #32 by inhibiting fast clicks to many tabs #55

Closed wildseansy closed 6 years ago

wildseansy commented 6 years ago

See https://github.com/timomeh/react-native-material-bottom-navigation/issues/32.

Clicking tabs fast makes them get into an infinite loop of switching. Easiest to repro on a real device. This just enforces a 1/2 sec time window before tabs can be switched again.

timomeh commented 6 years ago

Thanks for your PR. We had a discussion on this in Issue #6.

I don't think blocking the tap is the best solution, and the root of this problem is how the whole animation-response-logic works. But this would mean changing a lot of things, so I'll gladly accept your changes as a hotfix for this issue.

timomeh commented 6 years ago

Published as version 0.5.3