Expo Sharing - share to Print

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): iOS

Hi,
I would like to use the expo-sharing to send the pdf to printer. But the share options only has AirDrop, share to other Apps, and Save to File.
Is there a way to enable share to Printer?

Thanks.

Hi @auto2019, im running into the same issue with SDK 36 too, i want to take snapshot, then share and im getting “AirDrop” option only on iOS on Android works as expected, here my code:

import { captureRef } from 'react-native-view-shot';
import * as Sharing from 'expo-sharing';

captureRef(this._shareViewContainer, {
  // defaults
}).then(
  uri => {
    console.log('Image saved to', uri);
    Sharing.shareAsync(uri);
  },
  error => console.error('Oops, snapshot failed', error)
);

@bacon any advice with that?, thanks !!!

@bacon here the snack:

thanks once !!!

Maybe you could use Print.printAsync(options)?

@wodin here my github report Expo-Sharing issue with react-native-view-shot on iOS · Issue #6920 · expo/expo · GitHub i need to display proper share options over share dialog, thanks !!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.