🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-native-install-unknown-apps

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-install-unknown-apps

A lightweight React Native library to manage and enable the 'Install Unknown Apps' permission on Android devices. Ideal for apps that need to install APK files from external sources.

0.1.1
latest
Source
npm
Version published
Weekly downloads
7
16.67%
Maintainers
0
Weekly downloads
 
Created
Source

📱 react-native-install-unknown-apps

A lightweight React Native library to manage and enable the 'Install Unknown Apps' permission on Android devices. Ideal for apps that need to install APK files from external sources.

🚀 Installation

Using npm:

npm install react-native-install-unknown-apps

Using yarn:

yarn add react-native-install-unknown-apps

📖 Usage

import {
  checkAppInstallPermission,
  requestAppInstallPermission,
} from 'react-native-install-unknown-apps';

// Check if the app can request install packages permission
const checkPermission = async () => {
  const hasPermission = await checkAppInstallPermission();
  if (!hasPermission) {
    await requestAppInstallPermission();
  }
};

checkPermission();

🛠️ API

checkAppInstallPermission()

  • Returns: Promise<boolean>
  • Checks if the app has permission to install unknown apps.

requestAppInstallPermission()

  • Opens a permission dialog to request install unknown apps permission.

✅ Supported Platforms

  • Android (API level 26+)
  • Not supported on iOS

🎥 Demo Video

Watch the demo video to see the library in action:

Watch the video

📄 License

MIT

Made with ❤️ by [Aravind] 🚀

Keywords

react-native

FAQs

Package last updated on 26 Dec 2024

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