react-native-installer-package-name
v1.0.0
Published
Retrieve the package name of the application that installed a package. This identifies which market the package came from.
Downloads
16
Maintainers
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
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.