software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

[iOS] Prevent crash when setting `cursor` style #3097

Closed m-bert closed 2 months ago

m-bert commented 2 months ago

Description

If you try to set cursor style in our buttons on iOS you'll get unrecognized selector error. This PR sets cursor value to be undefined on iOS, so apps no longer crash.

Fixes #3081

Test plan

Tested on the following code: ```tsx import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { RectButton } from 'react-native-gesture-handler'; export default function EmptyExample() { return ( Hello World! ); } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, }); ```