🖱️ Native cursor management for React Native Windows applications with support for 10 cursor types. Solves the inability to use CSS cursor properties like cursor: pointer in React Native Windows applications.
- ✅ 10 cursor types (arrow, pointer, cross, help, ibeam, wait, resize, etc.)
- ✅ TypeScript support
- ✅ Zero dependencies
- ✅ Native Windows implementation
npm install @levpotapov/react-native-windows-cursor
# or
yarn add @levpotapov/react-native-windows-cursor
npx react-native autolink-windows
npm run windows
That's it! The package is ready to use.
Returns an object with cursor control methods.
setArrow()
- Default arrow cursorsetPointer()
- Hand pointer (for clickable elements)setCross()
- Crosshair cursorsetHelp()
- Help cursor (with question mark)setIBeam()
- Text selection cursor (I-beam)setWait()
- Loading/waiting cursorsetSizeAll()
- Move cursor (all directions)setSizeNorthSouth()
- Vertical resize cursorsetSizeWestEast()
- Horizontal resize cursorsetNo()
- Not allowed cursorsetDefault()
- Reset to default (arrow)setCursor(type)
- Set cursor by type name
- ✅ Windows 10/11 (UWP)
- ✅ React Native Windows (UWP template)
0.79.x ✅ Tested
0.73.x - 0.78.x
- Copy the code from this file example
- Import CursorTestScreen in your App.tsx
MIT © Lev Potapov
Created for the React Native Windows community.