react-native-silent-listener
v0.1.0
Published
listen when user enable or disable silent mode
Downloads
124
Readme
react-native-silent-listener
Library for listen when user enable or disable silent mode
Installation
npm install react-native-silent-listener
cd ios && pod install
Usage
import SilentListener from 'react-native-silent-listener';
// ...
SilentListener.setCheckInterval(2);
const onMuteChange = (nextVal) => {
//
};
SilentListener.addEventListener(onMuteChange);
SilentListener.removeEventListener(onMuteChange);
SilentListener.removeAllListeners();
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT