Skip to content

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

@antpuleo2586

Description

@antpuleo2586

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions