Documentation

Hi friend! Meet us at App.js Conf in Krakow, Poland on April 4th and 5th with workshops and talks. Learn more

Print

An API for iOS (AirPrint) and Android printing functionality.
This API is available under the DangerZone namespace for the time being.

Print a document or HTML.

  • options (object) -- A map defining what should be printed:
    • uri (string) -- URI of a PDF file to print. Remote or local (ex. selected via DocumentPicker). This only supports PDF, not other types of document (e.g. images).
    • html (string) -- HTML string to print.
    • printerUrl (string) -- iOS only. URL of the printer to use. Returned from selectPrinterAsync.

  • Resolves to an empty promise if printing started.

iOS only. Choose a printer that can be later use in printAsync.

  • Resolvses to an object containing name and url of the selected printer.