Library for listen when user enable or disable silent mode. It works only on real iOS device
npm install react-native-silent-listener
cd ios && pod install
import SilentListener from 'react-native-silent-listener';
// ...
SilentListener.setCheckInterval(2);
const onMuteChange = (nextVal) => {
//
};
SilentListener.addEventListener(onMuteChange);
SilentListener.removeEventListener(onMuteChange);
SilentListener.removeAllListeners();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT