Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rn-ringer-mode

worker72229GPL1.0.4

React Native getRingerMode, gets the ring mode of the device, Works for Android only.

react-native, ringer-mode, android, silent, vibrate

readme

rn-ringer-mode

Getting started

Install

$ npm install rn-ringer-mode --save

$ react-native link rn-ringer-mode

Usage

`javascript import RingerMode from 'rn-ringer-mode';

// 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 this var mode = await RingerMode.getRingerMode();

// Another way to use it RingerMode.getRingerMode() .then(mode => { console.log(mode) });