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

Crash on iOS when setting cursor style #3081

Closed
hazelmeow opened this issue Sep 2, 2024 · 1 comment · Fixed by #3097
Closed

Crash on iOS when setting cursor style #3081

hazelmeow opened this issue Sep 2, 2024 · 1 comment · Fixed by #3097
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@hazelmeow
Copy link

Description

When setting cursor: 'auto' or cursor: 'pointer' in the style of a RectButton, the app crashes with Exception thrown while executing UI block: -[RNGestureHandlerButton setCursor:]: unrecognized selector sent to instance. I don't expect cursor styles to work on mobile but it probably shouldn't crash. I can reproduce the issue on the iOS simulator and on a real iPhone.

Steps to reproduce

Create a RectButton and pass style={{ cursor: 'auto' }}.

Snack or a link to a repository

https://github.com/hazelmeow/rngh-cursor-style-repro

Gesture Handler version

2.16.1

React Native version

0.74.5

Platforms

iOS

JavaScript runtime

None

Workflow

Expo managed workflow

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided labels Sep 2, 2024
@m-bert
Copy link
Contributor

m-bert commented Sep 13, 2024

Hi @hazelmeow! Could you please check if this PR helps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants