How to use the react-native-share.isPackageInstalled function in react-native-share

To help you get started, we’ve selected a few react-native-share examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / react-native-share / example / App.js View on Github external
const checkIfPackageIsInstalled = async () => {
    const {isInstalled} = await Share.isPackageInstalled(packageSearch);

    Alert.alert(
      `Package: ${packageSearch}`,
      `${isInstalled ? 'Installed' : 'Not Installed'}`,
    );
  };

react-native-share

Social share, sending simple data to other apps.

MIT
Latest version published 26 days ago

Package Health Score

92 / 100
Full package analysis