0.1.3 • Published 4 years ago

react-native-app-interface v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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