npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-installed-app-checker

v1.1.1

Published

A React Native module to check if an app is installed and get list of installed apps

Readme

react-native-installed-app-checker

react-native-installed-app-checker is a React Native module that allows you to check if a specific application is installed on the device and get the list of installed applications. This module supports both Android and iOS platforms.

Installation

Use the package manager npm to install react-native-installed-app-checker.

npm install [email protected]

If any error u can use 1.0.4 version

npm install [email protected]

iOS Setup

For iOS, you need to run:

cd ios && pod install && cd ..

Platform Specific Setup

Android Setup

Permissions In order to check if an app is installed or get the list of installed apps, you'll need to request the QUERY_ALL_PACKAGES permission. Add the following permission to your AndroidManifest.xml:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

This permission allows the app to query the list of all installed apps on the device. Note that using this permission requires justification, and you should check the Google Play policies if you plan to distribute your app through the Play Store.

Android 11 and Above Starting with Android 11 (API level 30), Google has introduced additional restrictions for accessing installed apps. To handle this properly, you may need to provide a rationale for why your app requires the QUERY_ALL_PACKAGES permission. For more information, see the Google Play policies.

iOS Setup

iOS has different limitations compared to Android:

  1. URL Scheme Based Detection: iOS uses URL schemes to detect installed apps. The module includes a comprehensive list of popular apps and their URL schemes.

  2. Limited App Detection: Unlike Android, iOS cannot detect all installed apps due to sandboxing restrictions. Only apps with known URL schemes can be detected.

  3. No Additional Permissions Required: iOS doesn't require special permissions for URL scheme detection.

  4. Supported Apps: The module can detect popular apps like WhatsApp, Instagram, Facebook, Twitter, YouTube, Spotify, Netflix, and many more.

Note: iOS can only detect apps that have registered URL schemes. If an app doesn't have a public URL scheme, it cannot be detected by this method.

Usage

Check if a specific app is installed

Android Usage:

import React from 'react';
import { View, Button, Alert } from 'react-native';
import RNInstalledAppChecker from 'react-native-installed-app-checker';

const App = () => {
  const checkAppInstalled = (packageName) => {
    RNInstalledAppChecker.isAppInstalled(packageName, (isInstalled) => {
      if (isInstalled) {
        Alert.alert('App Installed', `${packageName} is installed.`);
      } else {
        Alert.alert('App Not Found', `${packageName} is not installed.`);
      }
    });
  };

  return (
    <View style={{ padding: 20 }}>
      <Button title="Check App Installation" onPress={() => checkAppInstalled('com.whatsapp')} />
    </View>
  );
};

export default App;

iOS Usage:

import React from 'react';
import { View, Button, Alert } from 'react-native';
import RNInstalledAppChecker from 'react-native-installed-app-checker';

const App = () => {
  const checkAppInstalled = (urlScheme) => {
    RNInstalledAppChecker.isAppInstalled(urlScheme, (isInstalled) => {
      if (isInstalled) {
        Alert.alert('App Installed', `${urlScheme} is installed.`);
      } else {
        Alert.alert('App Not Found', `${urlScheme} is not installed.`);
      }
    });
  };

  return (
    <View style={{ padding: 20 }}>
      <Button title="Check WhatsApp" onPress={() => checkAppInstalled('whatsapp://')} />
      <Button title="Check Instagram" onPress={() => checkAppInstalled('instagram://')} />
    </View>
  );
};

export default App;

Get list of installed apps

Android - Get user apps (excluding system apps):

import React from 'react';
import { View, Button, Alert, FlatList, Text } from 'react-native';
import RNInstalledAppChecker from 'react-native-installed-app-checker';

const App = () => {
  const [installedApps, setInstalledApps] = React.useState([]);

  const getInstalledApps = () => {
    RNInstalledAppChecker.getInstalledApps((apps) => {
      setInstalledApps(apps);
      console.log('Installed Apps:', apps);
    });
  };

  const renderAppItem = ({ item }) => (
    <View style={{ padding: 10, borderBottomWidth: 1, borderBottomColor: '#eee' }}>
      <Text style={{ fontWeight: 'bold' }}>{item.appName}</Text>
      <Text style={{ color: '#666' }}>{item.packageName}</Text>
      <Text style={{ color: '#999' }}>Version: {item.versionName} ({item.versionCode})</Text>
    </View>
  );

  return (
    <View style={{ flex: 1, padding: 20 }}>
      <Button title="Get Installed Apps" onPress={getInstalledApps} />
      <FlatList
        data={installedApps}
        keyExtractor={(item) => item.packageName}
        renderItem={renderAppItem}
        style={{ marginTop: 20 }}
      />
    </View>
  );
};

export default App;

iOS - Get detected apps:

import React from 'react';
import { View, Button, Alert, FlatList, Text } from 'react-native';
import RNInstalledAppChecker from 'react-native-installed-app-checker';

const App = () => {
  const [installedApps, setInstalledApps] = React.useState([]);

  const getInstalledApps = () => {
    RNInstalledAppChecker.getInstalledApps((apps) => {
      setInstalledApps(apps);
      console.log('Detected Apps:', apps);
    });
  };

  const renderAppItem = ({ item }) => (
    <View style={{ padding: 10, borderBottomWidth: 1, borderBottomColor: '#eee' }}>
      <Text style={{ fontWeight: 'bold' }}>{item.appName}</Text>
      <Text style={{ color: '#666' }}>{item.urlScheme}</Text>
      <Text style={{ color: '#999' }}>URL Scheme: {item.urlScheme}</Text>
    </View>
  );

  return (
    <View style={{ flex: 1, padding: 20 }}>
      <Button title="Get Detected Apps" onPress={getInstalledApps} />
      <FlatList
        data={installedApps}
        keyExtractor={(item) => item.urlScheme}
        renderItem={renderAppItem}
        style={{ marginTop: 20 }}
      />
    </View>
  );
};

export default App;

Get list of all installed apps (Android only)

Note: This feature is only available on Android. On iOS, getAllInstalledApps() returns the same result as getInstalledApps().

import React from 'react';
import { View, Button, Alert, FlatList, Text } from 'react-native';
import RNInstalledAppChecker from 'react-native-installed-app-checker';

const App = () => {
  const [allApps, setAllApps] = React.useState([]);

  const getAllInstalledApps = () => {
    RNInstalledAppChecker.getAllInstalledApps((apps) => {
      setAllApps(apps);
      console.log('All Installed Apps:', apps);
    });
  };

  const renderAppItem = ({ item }) => (
    <View style={{ padding: 10, borderBottomWidth: 1, borderBottomColor: '#eee' }}>
      <Text style={{ fontWeight: 'bold' }}>{item.appName}</Text>
      <Text style={{ color: '#666' }}>{item.packageName}</Text>
      <Text style={{ color: '#999' }}>
        Version: {item.versionName} ({item.versionCode})
        {item.isSystemApp ? ' - System App' : ' - User App'}
      </Text>
    </View>
  );

  return (
    <View style={{ flex: 1, padding: 20 }}>
      <Button title="Get All Apps" onPress={getAllInstalledApps} />
      <FlatList
        data={allApps}
        keyExtractor={(item) => item.packageName}
        renderItem={renderAppItem}
        style={{ marginTop: 20 }}
      />
    </View>
  );
};

export default App;

API Reference

isAppInstalled(identifier, callback)

Checks if a specific app is installed on the device.

Parameters:

  • identifier (string):
    • Android: Package name of the app (e.g., "com.whatsapp")
    • iOS: URL scheme of the app (e.g., "whatsapp://")
  • callback (function): Callback function that receives a boolean indicating if the app is installed

getInstalledApps(callback)

Gets the list of installed apps.

Parameters:

  • callback (function): Callback function that receives an array of app objects

Android App object structure:

{
  packageName: string,    // Package name of the app
  appName: string,        // Display name of the app
  versionName: string,    // Version name (e.g., "1.0.0")
  versionCode: number     // Version code (e.g., 1)
}

iOS App object structure:

{
  appName: string,        // Display name of the app
  packageName: string,    // URL scheme of the app
  urlScheme: string,      // URL scheme of the app
  isInstalled: boolean    // Always true for detected apps
}

getAllInstalledApps(callback)

Gets the list of all installed apps.

Android: Includes both user and system apps. iOS: Returns the same result as getInstalledApps().

Parameters:

  • callback (function): Callback function that receives an array of app objects

Android App object structure:

{
  packageName: string,    // Package name of the app
  appName: string,        // Display name of the app
  versionName: string,    // Version name (e.g., "1.0.0")
  versionCode: number,    // Version code (e.g., 1)
  isSystemApp: boolean    // Whether the app is a system app
}

iOS App object structure:

{
  appName: string,        // Display name of the app
  packageName: string,    // URL scheme of the app
  urlScheme: string,      // URL scheme of the app
  isInstalled: boolean    // Always true for detected apps
}

Platform Differences

Android

  • Can detect all installed apps (with proper permissions)
  • Returns detailed app information including version
  • Supports system app detection
  • Requires QUERY_ALL_PACKAGES permission

iOS

  • Can only detect apps with registered URL schemes
  • Limited to popular apps with known schemes
  • No version information available
  • No additional permissions required
  • Sandboxing restrictions apply

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Contact

For any inquiries or further assistance, please reach out to the author: