ptmt / react-native-macos

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.25k stars 429 forks source link

Expose Cursor API in "react-native" module (again) #203

Closed shirakaba closed 6 years ago

shirakaba commented 6 years ago

Cause of bug

As explained by jtag05:

Implementation of Cursor API missing since Libraries/react-native/react-native.js moved to Libraries/react-native/react-native-implementation.js

Usage

const Cursor = require("react-native").Cursor;

Cursor.set('openHand');

All cursor types detailed in Cursor.macos.js implementation introduced by matpaul's 2016 PR.

See also Apple's NSCursor documentation.

ptmt commented 6 years ago

Thanks!