react-native-app-interface

App interface for rn

Usage no npm install needed!

<script type="module">
  import reactNativeAppInterface from 'https://cdn.skypack.dev/react-native-app-interface';
</script>

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