0

I'm trying to implement sharing a pdf feature using react-native-share. When I click 'share' button, there should be a pop-up with different sharing options but nothing pops up when I connect to my real ios device and test it. The app doesn't freeze or anything. Weird thing is everything works as expected when I test it on ios simulator. Here's my code snippet

const sharePdf = async () => {
   
    const shareOptions = {
      url: `file://${reportUri}`,
      type: 'application/pdf',
      failOnCancel: true,
    };

    await Share.open(shareOptions);
  };

tlqkf
  • 23
  • 2

0 Answers0