https://github.com/aravind3566/react-native-get-app-list
🎊🚨 A comprehensive library to retrieve the list of all installed applications on Android devices, including detailed information such as package names, app name and version codes. (Android only) 🚨🎊
https://github.com/aravind3566/react-native-get-app-list
android-app app-list react-native
Last synced: 10 months ago
JSON representation
🎊🚨 A comprehensive library to retrieve the list of all installed applications on Android devices, including detailed information such as package names, app name and version codes. (Android only) 🚨🎊
- Host: GitHub
- URL: https://github.com/aravind3566/react-native-get-app-list
- Owner: aravind3566
- License: mit
- Created: 2024-11-01T01:54:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-11T07:28:55.000Z (10 months ago)
- Last Synced: 2025-09-11T09:47:14.056Z (10 months ago)
- Topics: android-app, app-list, react-native
- Language: Kotlin
- Homepage: https://www.npmjs.com/package/react-native-get-app-list
- Size: 2.04 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-get-app-list
A React Native library to retrieve a list of all installed applications on the device, including their package names and version codes.
## Note: This Library only available for Android
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [API Reference](#api-reference)
- [Contributing](#contributing)
- [License](#license)
## Installation
To install the package, use npm or yarn:
```sh
npm install react-native-get-app-list
```
or
```sh
yarn add react-native-get-app-list
```
## Usage
To retrieve the list of installed apps, including their package names and version codes, use the `getInstalledApps` function:
```javascript
import { getInstalledApps } from 'react-native-get-app-list';
// ...
async function fetchInstalledApps() {
try {
const result = await getInstalledApps();
console.log(result); // Displays the list of installed apps
} catch (error) {
console.error('Error fetching installed apps:', error);
}
}
// Call the function to fetch installed apps
fetchInstalledApps();
```
### Example Output
The output will be an array of objects, each containing the `packageName`, `versionName`, and `versionCode` of the installed apps:
```json
[
{
"icon":"iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACA...",
"appName": "Calculator",
"packageName": "com.miui.calculator",
"versionName": "15.0.14"
},
{
"icon":"iVBORw0KGgoAAAA...",
"appName": "Scanner",
"packageName": "com.xiaomi.scanner",
"versionName": "13.2204.5"
},
{
"icon":"iVBORw0KGgoAAAA...",
"appName": "Gallery Editor",
"packageName": "com.miui.mediaeditor",
"versionName": "1.8.0.12-global"
},
{
"icon":"iVBORw0KGgoAAAA...",
"appName": "Find My Device",
"packageName": "com.google.android.apps.adm",
"versionName": "3.1.173-1"
}
]
```
## API Reference
### `getInstalledApps()`
Returns a promise that resolves with an array of installed applications, including their package names and version codes.
**Returns:** `Promise>`
**Example:**
```javascript
const apps = await getInstalledApps();
```
## Contributing
Contributions are welcome! Please see the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---