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

[Workaround available] TabController.TabBar crashes on press on iOS w/ RN-Gesture-Handler 2.15.0 #2979

Open
2 of 7 tasks
allynsweet opened this issue Mar 12, 2024 · 1 comment
Labels
bug a bug in one of the components

Comments

@allynsweet
Copy link

allynsweet commented Mar 12, 2024

Description

When using a TabController.TabBar on iOS, pressing the tab item results in the app crashing with the following error in XCode:

Thread 1: "-[UITouchesEvent locationInView:]: unrecognized selector sent to instance 0x60000390a7d0"

Related to

  • Components
  • Demo
  • Docs
  • Typings

Steps to reproduce

const [tabItems, setTabItems] = React.useState<TabControllerItemProps[]>([
  { label: "Home" },
]);
  
return (
<TabController items={tabItems} asCarousel={true}>
          <TabController.PageCarousel>
              <TabController.TabPage index={0}>
                <HomeScreen />
              </TabController.TabPage>
            </TabController.PageCarousel>
             <TabController.TabBar />
</TabController>
);

Press on the item in the TabController.TabBar

Expected behavior

TabController should navigate to the pressed tab item.

Actual behavior

App crashes with iOS error:

Thread 1: "-[UITouchesEvent locationInView:]: unrecognized selector sent to instance 0x60000390a7d0"

More Info

Issue does not happen on Android, tested it on iPhone 15 simulator and iPhone 11 physical device.

Environment

  • React Native version: 0.73.6
  • React Native UI Lib version: 7.17.2
  • react-native-gesture-handler: 2.15.0
  • react-native-reanimated: 3.8.0

Affected platforms

  • Android
  • iOS
  • Web
@allynsweet allynsweet added the bug a bug in one of the components label Mar 12, 2024
@allynsweet allynsweet changed the title TabController.TabBar crashes when pressedon iOS TabController.TabBar crashes when pressed on iOS Mar 12, 2024
@allynsweet allynsweet changed the title TabController.TabBar crashes when pressed on iOS TabController.TabBar crashes when pressed on iOS w/ RN-Gesture-Handler 2.15.0 Mar 13, 2024
@allynsweet
Copy link
Author

Update: This issue only happens when using the latest react-native-gesture-handler 2.15.0 released last month.

Downgrading RN Gesture Handler to 2.14.1 is a workaround

@allynsweet allynsweet changed the title TabController.TabBar crashes when pressed on iOS w/ RN-Gesture-Handler 2.15.0 [Workaround available] TabController.TabBar crashes on press on iOS w/ RN-Gesture-Handler 2.15.0 Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug in one of the components
Projects
None yet
Development

No branches or pull requests

1 participant