Skip to content

πŸ“²πŸš¨ 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. (Android only) πŸš¨πŸ“²

License

Notifications You must be signed in to change notification settings

aravind3566/react-native-install-unknown-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“± 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

til

Watch the demo video to see the library in action:

Watch the video

πŸ“„ License

MIT


Made with ❀️ by [Aravind] πŸš€

About

πŸ“²πŸš¨ 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. (Android only) πŸš¨πŸ“²

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published