Skip to content

zapph/react-native-ene-battery

 
 

Repository files navigation

react-native-ene-battery

npm version

Installation

Add the package to your react-native project in the following way

npm install --save react-native-ene-battery

Or

yarn add react-native-ene-battery

Link the current package to your react native project

react-native link react-native-ene-battery

Usage

import Battery from 'react-native-ene-battery'

componentWillMount() {
    Battery.getBatteryPercentage((batteryLevel) => {
      console.log(batteryLevel)
    })
  }

For any problems and doubt raise an issue.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Objective-C 48.4%
  • Java 25.0%
  • Python 19.0%
  • JavaScript 7.6%