How to use the expo-sharing.isAvailableAsync function in expo-sharing

To help you get started, we’ve selected a few expo-sharing 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 EvanBacon / Expo-Crossy-Road / components / GameOver / Footer.js View on Github external
useEffect(() => {
    isAvailableAsync().then(setCanShare).catch(() => { });
  }, []);
github expo / expo / apps / native-component-list / src / screens / SharingScreen.tsx View on Github external
componentDidMount() {
    Sharing.isAvailableAsync().then(isAvailable =>
      this.setState({ isAvailable, loading: false })
    );
  }

expo-sharing

Provides a way to share files directly with other compatible applications.

MIT
Latest version published 2 months ago

Package Health Score

95 / 100
Full package analysis