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.

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 1 month ago

Package Health Score

92 / 100
Full package analysis

Similar packages