Skip to content
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

Tapping twice on tab freezes tab bar - iOS - 7.0.0-rc.1 #803

Open
antpuleo2586 opened this issue Jan 3, 2024 · 0 comments
Open

Tapping twice on tab freezes tab bar - iOS - 7.0.0-rc.1 #803

antpuleo2586 opened this issue Jan 3, 2024 · 0 comments

Comments

@antpuleo2586
Copy link

antpuleo2586 commented Jan 3, 2024

Environment

iOS 17.2
react-native-pager-view: v7.0.0-rc.1
react-native-tab-view: 3.3.0

Description

Tapping twice on a tab freezes the tab bar. This is due to the RNCPagerView implementation setting self.animating = true; in the goTo method, which is never reset back to false when you tap on the same tab twice.

Reproducible Demo

Tap twice on a tab and see the tab bar frozen.

Potential fix

I believe self.animating = true; could be conditionally set only when the index and current page differ i.e. [self getCurrentPage] != index in the goTo method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant