react-native-do-not-disturb
v0.2.1
Published
test
Downloads
69
Readme
react-native-do-not-disturb
Enable and disable DND mode on Android devices.
Installation
npm install react-native-do-not-disturb
Usage
import {
isDoNotDisturbModeOn,
openDoNotDisturbSettings,
} from 'react-native-do-not-disturb';
// ...
const isDNDModeOn = await isDoNotDisturbModeOn();
console.log('DND', 'Is DND mode on: ' + isDNDModeOn);
if (!isDNDModeOn) {
openDoNotDisturbSettings();
}
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library