An open API service indexing awesome lists of open source software.

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.

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.