react-native-ringer-mode
Getting started
Install with git
$ npm install react-native-ringer-mode --save
Link
$ react-native link react-native-ringer-mode
Usage
; // getRingerMode is a static async function// resolves the ringer mode as a string of the android device// "NORMAL" || "SILENT" || "VIBRATE"// RINGER_MODE_NORMAL, RINGER_MODE_SILENT, RINGER_MODE_VIBRATE // Get the value like thisvar mode = await RingerMode; // Another way to use itRingerMode;