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.24k stars 429 forks source link

Cursor missing from `Libraries/react-native/react-native-implementation.js` #189

Closed jtag05 closed 6 years ago

jtag05 commented 6 years ago

Description

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

Solution

Add get Cursor() { return require('Cursor'); } to Libraries/react-native/react-native-implementation.js

shirakaba commented 6 years ago

Thanks for the mentioning this issue; helped me out with using Cursor myself. Here's a PR following your instructions!

Note that this should be perfectly safe to merge, as it's merely restoring matpaul's original implementation of the Cursor API following a react-native core refactor.