react-native-device-battery
react-native-device-battery copied to clipboard
Monitor device battery state changes
Hey I noticed for later versions of RN this library has a 3.0.0 version release but its not available on npm
ios 下应该如何使用啊,等文档更新
I was just wondering if this repo is still maintained. I need the battery status listener, which we have here. But the remove listener is missing and only needs to...
Battery doest not work in android when app in background (minimized). I have error: ``` error Error: Battery manager is not active at createErrorFromErrorData (E:\projects\project_name\node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:123) at E:\projects\project_name\node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:80 at MessageQueue.__invokeCallback (E:\projects\project_name\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:400)...
When I want use this package in background service I get "Battery is not active"
Hi, I am not sure, if I am missing something. But, my `MainActivity.java` file (Android) does not look like the one in [your Readme](https://github.com/robinpowered/react-native-device-battery#android): This is yours: ```java import com.robinpowered.react.battery.DeviceBatteryPackage;...
DeviceBattery.addListener() alone is causing error undefined is not a function(evaluating '_reactNativeDeviceBattery2.default.addListener()') Please help me to solve this...
Currently the instructions call for `new DeviceBatteryPackage()`. It should be `new DeviceBatteryPackage(this)`. Discovered in https://github.com/robinpowered/react-native-device-battery/issues/1