react-native-device-info
Advanced tools
Comparing version 0.27.0 to 0.27.1
## Release Notes | ||
### 0.27.1 | ||
* Enabled battery monitoring mode to get actual battery data (https://github.com/rebeccahughes/react-native-device-info/pull/404) | ||
### 0.27.0 | ||
@@ -4,0 +7,0 @@ * Added `isBatteryCharging()` (https://github.com/rebeccahughes/react-native-device-info/pull/514) |
{ | ||
"name": "react-native-device-info", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"description": "Get device information using react-native", | ||
@@ -5,0 +5,0 @@ "main": "deviceinfo.js", |
@@ -303,4 +303,11 @@ # react-native-device-info | ||
> To be able to get actual battery level enable battery monitoring mode for application. | ||
> Add this code: | ||
```objective-c | ||
[UIDevice currentDevice].batteryMonitoringEnabled = true; | ||
``` | ||
> to AppDelegate.m application:didFinishLaunchingWithOptions: | ||
> | ||
> Returns -1 on the iOS Simulator | ||
--- | ||
@@ -307,0 +314,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159111
40
996