README
react-native-battery
Getting started
$ npm install react-native-battery --save
Mostly automatic installation
$ react-native link react-native-battery
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-battery
and addRNBattery.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNBattery.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNBattery from 'react-native-battery';
// TODO: What to do with the module?
RNBattery;