react-native-do-not-disturb
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-do-not-disturb

Weekly Downloads

13

Version

0.2.1

License

MIT

Unpacked Size

217 kB

Total Files

53

Last publish

Collaborators

  • itryp