0.1.0 • Published 2 years ago
react-native-silent-listener-custom v0.1.0
react-native-silent-listener
Library for listen when user enable or disable silent mode. It works only on real iOS device
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
0.1.0
2 years ago