Get the list of installed apps on Android

I’m trying to understand the discrepancies between the versions mentioned here and what you pasted above. Also the “scripts” section of your package.json is not what you would get by default when running expo init. Could you please let me know more about the history of your app?

Did you, for example, do something like this?

  1. expo init mytestreactnative
  2. <edit JS and maybe run expo install or npm install>
  3. <change package.json to use "react-native": "^0.60.5" instead of the Expo SDK>
  4. expo eject
  5. npm install react-native-android-installed-apps --save? (You don’t have it listed as a dependency.)
  6. ???
  7. <change package.json to use "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.1.tar.gz">

If so, why did you change the react-native dependency in package.json to “^0.60.5” before?

You can try running npx react-native link ... instead of react-native link ..., but if it still doesn’t work you are going to have to provide some more history. Another option would be to create a new app from scratch like this:

  1. expo init newapp
  2. expo eject
  3. npm install react-native-android-installed-apps
  4. npx react-native link react-native-android-installed-apps