https://github.com/shukerullah/react-native-installer-package-name
Retrieve the package name of the application that installed a package. This identifies which market the package came from.
https://github.com/shukerullah/react-native-installer-package-name
Last synced: 3 months ago
JSON representation
Retrieve the package name of the application that installed a package. This identifies which market the package came from.
- Host: GitHub
- URL: https://github.com/shukerullah/react-native-installer-package-name
- Owner: shukerullah
- License: mit
- Created: 2021-06-01T10:18:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-01T10:29:27.000Z (about 4 years ago)
- Last Synced: 2025-02-10T21:05:35.809Z (4 months ago)
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-installer-package-name
## Installation
**npm:**
npm install react-native-installer-package-name --save
**Yarn:**
yarn add react-native-installer-package-name
## Usage
```javascript
import InstallerPackageName from 'react-native-installer-package-name';
InstallerPackageName.getInstallerPackageName((response) => {
console.log(response);
});
```## Note
__iOS:__ It will always return `com.apple.MobileStore`.__Android:__
* null - developer
* com.android.vending - google play
* com.amazon.venezia - amazon app
* com.sec.android.app.samsungapps - samsung app store
* com.huawei.appmarket - huawei app gallery
__UNKNOWN SOURCE:__ If platform is not iOS or Android.