react-native-app-interface
v0.1.3
Published
App interface for rn
Downloads
5
Readme
react-native-app-interface
App interface for rn
Installation
npm install react-native-app-interface
or
yarn add react-native-app-interface
Usage
import {windowShouldClose, setCursor} from "react-native-app-interface";
// ...
//prevent close action
windowShouldClose(()=>{
return new Promise(resolve=>{
setTimeout(()=>{
resolve(true); //return true to close window, false to cancel action
}, 1000);
});
})
//set system cursor
setCursor('pointingHand');
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT