1.0.7 • Published 6 years ago

react-native-check-data-usage v1.0.7

Weekly downloads
32
License
-
Repository
-
Last release
6 years ago

react-native-check-data-usage

Getting started

$ npm install react-native-check-data-usage --save

Mostly automatic installation

$ react-native link react-native-check-data-usage

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNCheckDataUsagePackage; to the imports at the top of the file
  • Add new RNCheckDataUsagePackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-check-data-usage'
    project(':react-native-check-data-usage').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-check-data-usage/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-check-data-usage')

Usage

import RNCheckDataUsage from 'react-native-check-data-usage';

// TODO: What to do with the module?
RNCheckDataUsage;
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago