Skip to content

Fix error with the TabController and Gesture Handler when passing a ref #3389

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

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

nitzanyiz
Copy link
Collaborator

Description

There was an error occurring when using a tab item with a trailingAccessory which was passed with a ref on it. We're not sure what exactly causes the error but seems like taking the onPress outside of the scope of the handler fixes the error.

Changelog

TabBarItem - onPress taken from props at the beginning.

Additional info

MADS-4537

@nitzanyiz nitzanyiz requested a review from ethanshar November 13, 2024 14:46
@nitzanyiz nitzanyiz changed the title Fix error with the TabController and Reanimated when passing a ref Fix error with the TabController and Gesture Handler when passing a ref Nov 13, 2024
@ethanshar ethanshar merged commit 45aa8f2 into master Nov 13, 2024
1 check passed
@ethanshar ethanshar deleted the fix/TabController-passingRefError branch November 13, 2024 17:02
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

Successfully merging this pull request may close these issues.

2 participants