-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preventDefault doesn't work correctly #45
Comments
@elcrostatina thanks for reporting this issue, will look into it 👍 |
@gorhom Thanks for looking at this! Definitely need that feature 🙏 😄 |
Any idea when the feature will be released? 😬 |
hi guys, sorry i am busy these days, but i got this fixed with this PR (#50) please test it out and let me know 👍 yarn add ssh://[email protected]:gorhom/react-native-animated-tabbar#feature/allow-parent-to-control-internal-index |
hi @elcrostatina , @ThibaultJRD , @Tyldar would mind test (#50) :) yarn add ssh://[email protected]:gorhom/react-native-animated-tabbar#feature/allow-parent-to-control-internal-index |
it works perfectly 💪💪 |
this should be solved with 1.6.0 |
Awesome thanks! It works perfectly :) |
Bug
the preventDefault method of the tabPress event doesn't work correctly, the focus remains on the tab that is pressed
Steps To Reproduce
Describe what you expected to happen:
the focus have to remain on the previous tab
Reproducible sample code
<Tab.Screen name="Share" component={YourScreen} listeners={({navigation}) => ({ tabPress: event => { event.preventDefault(); navigation.navigate('YourScreen); }, })} />
The text was updated successfully, but these errors were encountered: