Open up android/app/src/main/java/[...]/MainActivity.java
Add import com.androidinstalledapps.RNAndroidInstalledAppsPackage; to the imports at the top of the file
Add new RNAndroidInstalledAppsPackage() to the list returned by the getPackages() method
Append the following lines to android/settings.gradle:
include ':react-native-android-installed-apps'
project(':react-native-android-installed-apps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-installed-apps/android')
Insert the following lines inside the dependencies block in android/app/build.gradle: