Skip to content

MarcosSarges/rn-installed-apps

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published