Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const checkIfPackageIsInstalled = async () => {
const {isInstalled} = await Share.isPackageInstalled(packageSearch);
Alert.alert(
`Package: ${packageSearch}`,
`${isInstalled ? 'Installed' : 'Not Installed'}`,
);
};