rn-installed-apps
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

rn-installed-apps

This library will return all applications with in Android device

Getting started

$ yarn add rn-installed-apps

Mostly automatic installation

Adding in AndroidManifest.xml

<queries>
   <intent>
      <action android:name="android.intent.action.MAIN" />
   </intent>
</queries>

Manual installation

IOS Not Have Supported

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import br.com.ms.rn_installed_apps.RNInstalledAppsPackage; to the imports at the top of the file
  • Add new RNInstalledAppsPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':rn-installed-apps'
    project(':rn-installed-apps').projectDir = new File(rootProject.projectDir, '../node_modules/rn-installed-apps/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle: implementation project(':rn-installed-apps')

Usage

import RNInstalledApps from "rn-installed-apps";

RNInstalledApps.getAllApps().then((data) => {
  console.log(data);
});

Recommendation

Package Sidebar

Install

npm i rn-installed-apps

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

764 kB

Total Files

122

Last publish

Collaborators

  • marcossarges