Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 497 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 497 Bytes

react-native-usage-stats

Getting started

$ npm install react-native-usage-stats --save

Mostly automatic installation

$ react-native link react-native-usage-stats

Add AndroidManifest permission

<uses-permission
    android:name="android.permission.PACKAGE_USAGE_STATS"
    tools:ignore="ProtectedPermissions" />

Usage

import UsageStats from 'react-native-usage-stats';

// TODO: What to do with the module?
UsageStats;

react-native-usage-stats