react-native-silent-listener-custom
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-silent-listener-custom

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

30.7 kB

Total Files

36

Last publish

Collaborators

  • giulio.bracci