0.2.1 • Published 2 years ago

react-native-do-not-disturb v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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