react-native-app-interface
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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

Package Sidebar

Install

npm i react-native-app-interface

Weekly Downloads

12

Version

0.1.3

License

MIT

Unpacked Size

29.1 kB

Total Files

21

Last publish

Collaborators

  • rockyf