From 43b218727aa0634c869cd205ecb708762da8ad54 Mon Sep 17 00:00:00 2001 From: ninty Date: Sun, 27 May 2018 22:48:59 +0800 Subject: [PATCH] V1.4.4 --- API.md | 1 + CHANGELOG.md | 7 +++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index ad5299b..818b6a1 100644 --- a/API.md +++ b/API.md @@ -34,6 +34,7 @@ addWifiListener(callback):Promise| Listen the wifi state changing, and it will r isLocationEnabled():Promise|Get location state, true if location is on. switchLocation(complete)|It will open **System Location Setting Page**, and you can change it by yourself. When come back to the app, the `complete` will be call. addLocationListener(callback):Promise| Listen the location state changing, and it will return the listener. (Android only) +getLocationMode():Promise| Get current location mode code: `0` - 'off', `1` - 'gps', `2` - 'network', `3` - 'gps & network'. (Android only) ---|--- **Bluetooth**| isBluetoothEnabled():Promise|Get bluetooth state, true if bluetooth is on. diff --git a/CHANGELOG.md b/CHANGELOG.md index f85b462..7056967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# V1.4.4 +**2018-05-27** + +new API: `getLocationMode()`, see [detail](https://github.com/c19354837/react-native-system-setting/issues/35) + +fix bug: all listener may get `null` sometime + # V1.4.3 **2018-05-21** diff --git a/package.json b/package.json index 15ed8b5..f9afb23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-system-setting", - "version": "1.4.3", + "version": "1.4.4", "description": "provide some system setting APIs. Volume, brightness, wifi, location, bluetooth, airplane...", "main": "SystemSetting.js", "homepage": "https://github.com/c19354837/react-native-system-setting",