How to use the expo-print.selectPrinterAsync function in expo-print

To help you get started, we’ve selected a few expo-print 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 expo / expo / apps / native-component-list / src / screens / PrintScreen.tsx View on Github external
_selectPrinterAsync = async () => {
    try {
      const selectedPrinter = await Print.selectPrinterAsync();
      this.setState({ selectedPrinter });
    } catch (e) {
      Alert.alert('Something went wrong: ', e.message);
    }
  }
github expo / expo / apps / storybook / stories / APIs / Print.stories.js View on Github external
_selectPrinterAsync = async () => {
    try {
      const selectedPrinter = await Print.selectPrinterAsync();
      this.setState({ selectedPrinter });
    } catch (e) {
      Alert.alert('Something went wrong: ', e.message);
    }
  };

expo-print

Provides an API for iOS (AirPrint) and Android printing functionality.

MIT
Latest version published 4 months ago

Package Health Score

89 / 100
Full package analysis