Skip to content

Releases: reyhankaplan/react-native-ringer-mode

v2.0.1

24 Mar 22:14

Choose a tag to compare

What's Changed

  • fix: android build error with react-native 0.72.10 by @Phygitall in #9

New Contributors

  • @Phygitall made their first contribution in #9

Full Changelog: v2.0.0...v2.0.1

v2.0.0

24 Oct 11:01

Choose a tag to compare

What's Changed

  • BREAKING CHANGE: Change signature of getRingerMode function. Previously it was a static method of default exported RingerMode class, now it is a standalone function that is exported from the library.
  • BREAKING CHANGE: Change resolved value of getRingerMode function. Previously the method used to be resolved string values such as 'SILENT', 'VIBRATE', 'NORMAL', now it resolves the value that Android returns which can be checked against RINGER_MODE.silent, RINGER_MODE.vibrate, RINGER_MODE.normal. See below for full example.
  • BREAKING CHANGE: All functions under iOS now resolve undefined.

Before v2.0.0.

import RingerMode from 'react-native-ringer-mode'

After v2.0.0

import { getRingerMode, RINGER_MODE } from 'react-native-ringer-mode'

(async () => {
  const mode = await getRingerMode()

  if (mode === RINGER_MODE.normal) {
    console.log('Mode is normal')
  }
})()

New Contributors

Full Changelog: v1.1.0...v2.0.0

Version 1.1.0

03 Sep 07:10
167d9e6

Choose a tag to compare

  • React Native V60 support

react-native-ringer-mode@1.0.1

16 Sep 14:38
c0a60e4

Choose a tag to compare

First Release

Description

Gets ringer mode of Android device
Doesn't support ios or windows phone...

Methods

  • getRingerMode