Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not an object (evaluating '_appList.APP_LIST[key].pkgName') #11

Open
kriptonhaz opened this issue Mar 27, 2018 · 7 comments

Comments

@kriptonhaz
Copy link

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

@boozi2
Copy link

boozi2 commented May 29, 2018

Did anyone mange to solve this issue?

@gabrielbuzziv
Copy link

Got the same error, someone solved?

@MichaelQ1an
Copy link

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.

@onitzschke
Copy link
Contributor

fixed with #19

@brainman07
Copy link

brainman07 commented Jun 14, 2019

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);

@wuodland
Copy link

wuodland commented Aug 18, 2019

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.

  1. 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.

@irfanismaya20
Copy link

evaluating '_appList.APP_LIST[key].pkgName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants