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