UNPKG

expo-print

Version:

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

17 lines (15 loc) 319 B
import { OrientationType } from './Print.types'; export default { get Orientation(): OrientationType { return { portrait: 'portrait', landscape: 'landscape', }; }, async print(): Promise<void> { window.print(); }, async printToFileAsync(): Promise<void> { window.print(); }, };