Skip to content

i am gettin Share error: [TypeError: _reactNativeSharePdf.default.sharePDF is not a function (it is undefined)] #77

@midiiiwo

Description

@midiiiwo

Share error: [TypeError: _reactNativeSharePdf.default.sharePDF is not a function (it is undefined)]

const result = await RNHTMLtoPDF.convert({
html: htmlString,
fileName: 'receipt_' + Date.now(),
base64: true,
});

  // Step 4: Share PDF
  const showError = await RNShareFile.sharePDF(result.base64, 'file');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions