okwasniewski / react-native-bottom-tabs

Native Bottom Tabs for React Native
https://okwasniewski.github.io/react-native-bottom-tabs/
MIT License
619 stars 24 forks source link

preventDefault() on tabPress listener #115

Closed gunnartorfis closed 2 weeks ago

gunnartorfis commented 2 weeks ago

We're using e.preventDefault() on tabPress with the non-native tab navigator, in order to show an overlay where the user chooses one of two routes.

Is it possible to add that functionality to the native tabs?

https://github.com/user-attachments/assets/6c5f03e4-2f29-4204-9dc9-2d8874fb952a

okwasniewski commented 2 weeks ago

Hey! Thanks for opening the issue.

It's a duplicate of #73 so I will close it in favour of that one.

I'm still trying to figure out how to make it work as there is no straight forward way of preventing actions on native events but hopefully this can be solved