New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-installed-application

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-installed-application

API to retrieve installed apps information using native built-ins

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
112
decreased by-45.89%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-installed-application

Platform Version Download License

React Native module which provides list of installed Android applications.

  • Work for android
  • Support typescript

Table of contents

  1. Installation
  2. Usage
  3. result
  4. method

Installation

If using yarn:

yarn add react-native-installed-application

If using npm:

npm i react-native-installed-application

Usage

import React, { useState } from "react";
import { View, Text } from "react-native";
import RNInstalledApplication from 'react-native-installed-application';

const App = () => {
  const [data, setData] = useState([]);

  const getApplication = ()=>{
    RNInstalledApplication.getApps()
    .then(apps => {
      setData(apps)
    })
    .catch(error => {
      console.log(error);
    });
  }

  return (
    <View style={{ marginVertical: 80, marginHorizontal: 20 }}>
      <TouchableOpacity onPress={()=> getApplication()}>
        <Text>Hello World</Text>
      </TouchableOpacity>
    </View>
  );
};

export default App;

Getting started

$ npm install react-native-installed-application --save

Method

1 - getApps()
2 - getNonSystemApps()
3 - getSystemApps()
4 - isPackageInstalled(packageName)

Result

  • packageName
  • versionName
  • versionCode
  • firstInstallTime
  • lastUpdateTime
  • appName
  • icon // Base64
  • apkDir
  • size // Bytes

Keywords

FAQs

Package last updated on 23 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc