0.1.6 • Published 11 months ago

react-native-app-usage v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-native-app-usage

This package will get the app usage stats

Installation

yarn add react-native-app-usage

Usage

import { requestUsagePermission,getUsageLast24Hr,checkPackagePermission } from 'react-native-app-usage';

// ...

 checkPackagePermission().then(permissionGranted=>{
        if(!permissionGranted)
        {
          requestUsagePermission() ;// If permission not granted then request for permission
        }
        else{
          getUsageLast24Hr((data)=>{
            let allAppUsage=data; // You can get all app usage data of past 24 Hrs
          })
        }
        
      }).catch(error=>{
        console.log('error==>',error);
      })

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

0.1.6

11 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago