react-native-check-app-install
react-native-check-app-install copied to clipboard
undefined is not an object (evaluating '_appList.APP_LIST[key].pkgName')
Hi, I tried just like the readme and just like the title said,
my environment so far: RN: 0.48.4 react-native-check-app-install 0.0.4
thanks
Did anyone mange to solve this issue?
Got the same error, someone solved?
I encountered the same problem. Turns out this npm package only checks a list of popular apps. You can find a file named app-list.js inside this package. When you try to detect an app that is not on the list, you will get this error.
fixed with https://github.com/redpandatronicsuk/react-native-check-app-install/pull/19
Hi,
AppInstalledChecker.isAppInstalledAndroid('com.waze') still throws this error for me. I checked inside node_modules/react-native-check-app-install, and yarn add (or npm install) probably doesn't have access to your latest version. The old line is still inside app-installed-checker.js : return this.checkPackageName(APP_LIST[key].pkgName);
Yes @brainman07 is right. The old line is still present inside node_modules. Please updated the npm model to have latest version. cc @onitzschke @redpandatronicsuk
edit: Those who are facing this issue here's how you solve it.
- Go to package.json and edit the line with "react-native-check-app-install" to use github as source instead of npmjs.com by changing it to:
"react-native-check-app-install": "redpandatronicsuk/react-native-check-app-install"
This changes the source to github. A simple npm install after that should do the trick.
evaluating '_appList.APP_LIST[key].pkgName