microsoft / react-native-macos

A framework for building native macOS apps with React.
https://microsoft.github.io/react-native-windows/
MIT License
3.49k stars 135 forks source link

Implement `cursor: pointer` for iOS / visionOS #2080

Closed Saadnajmi closed 7 months ago

Saadnajmi commented 7 months ago

Please select one of the following

Summary:

Port https://github.com/facebook/react-native/pull/43078 to React Native macOS. We already had a cursor prop for macOS, so this is mostly refactoring the implementation to be shared. I also added back the example page of the macOS cursors which seemed to get lost from #760 during some merges. Also as a bonus, we also implement cursor for Fabric on macOS 🎉

Changelog:

[IOS] [ADDED] - Implement cursor style prop

Test Plan:

See the example page running on all three apple platforms:

https://github.com/microsoft/react-native-macos/assets/6722175/7487fe28-a49c-4f10-af3d-210fa1c07966