UNPKG

expo-print

Version:

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

346 lines (178 loc) β€’ 11.9 kB
# Changelog ## Unpublished ### πŸ›  Breaking changes ### πŸŽ‰ New features ### πŸ› Bug fixes ### πŸ’‘ Others ## 55.0.9 β€” 2026-03-17 _This version does not introduce any user-facing changes._ ## 55.0.8 β€” 2026-02-25 _This version does not introduce any user-facing changes._ ## 55.0.7 β€” 2026-02-20 _This version does not introduce any user-facing changes._ ## 55.0.6 β€” 2026-02-16 _This version does not introduce any user-facing changes._ ## 55.0.5 β€” 2026-02-08 _This version does not introduce any user-facing changes._ ## 55.0.4 β€” 2026-02-03 _This version does not introduce any user-facing changes._ ## 55.0.3 β€” 2026-01-27 _This version does not introduce any user-facing changes._ ## 55.0.2 β€” 2026-01-26 _This version does not introduce any user-facing changes._ ## 55.0.1 β€” 2026-01-22 _This version does not introduce any user-facing changes._ ## 55.0.0 β€” 2026-01-21 _This version does not introduce any user-facing changes._ ## 15.0.8 - 2025-12-05 _This version does not introduce any user-facing changes._ ## 15.0.7 β€” 2025-09-11 _This version does not introduce any user-facing changes._ ## 15.0.6 β€” 2025-09-02 ### πŸ’‘ Others - Change Constants to Constant/Property. ([#38926](https://github.com/expo/expo/pull/38926) by [@jakex7](https://github.com/jakex7)) ## 15.0.5 β€” 2025-08-31 _This version does not introduce any user-facing changes._ ## 15.0.4 β€” 2025-08-26 ### πŸ› Bug fixes - [Android] Use the last path segment of the `uri` as the job name. ([#39133](https://github.com/expo/expo/pull/39133) by [@ouwargui](https://github.com/ouwargui)) ## 15.0.3 β€” 2025-08-25 _This version does not introduce any user-facing changes._ ## 15.0.2 β€” 2025-08-16 _This version does not introduce any user-facing changes._ ## 15.0.1 β€” 2025-08-15 _This version does not introduce any user-facing changes._ ## 15.0.0 β€” 2025-08-13 ### πŸ’‘ Others - Mark `uri` option as supported on iOS and Android only. ([#37312](https://github.com/expo/expo/pull/37312) by [@aleqsio](https://github.com/aleqsio)) ## 14.1.4 β€” 2025-04-30 _This version does not introduce any user-facing changes._ ## 14.1.3 β€” 2025-04-25 _This version does not introduce any user-facing changes._ ## 14.1.2 β€” 2025-04-14 _This version does not introduce any user-facing changes._ ## 14.1.1 β€” 2025-04-09 _This version does not introduce any user-facing changes._ ## 14.1.0 β€” 2025-04-04 ### πŸŽ‰ New features - Add `textZoom` option to override font scaling applied by the user’s Android device settings. ([#33784](https://github.com/expo/expo/pull/33784) by [@BatDroid](https://github.com/BatDroid)) ### πŸ’‘ Others - [Android] Started using expo modules gradle plugin. ([#34176](https://github.com/expo/expo/pull/34176) by [@lukmccall](https://github.com/lukmccall)) - [apple] Migrate remaining `expo-module.config.json` to unified platform syntax. ([#34445](https://github.com/expo/expo/pull/34445) by [@reichhartd](https://github.com/reichhartd)) - [iOS] Fix warnings which will become errors in Swift 6. ([#35288](https://github.com/expo/expo/pull/35288) by [@behenate](https://github.com/behenate)) ## 14.0.3 - 2025-01-10 _This version does not introduce any user-facing changes._ ## 14.0.2 β€” 2024-10-25 _This version does not introduce any user-facing changes._ ## 14.0.1 β€” 2024-10-25 _This version does not introduce any user-facing changes._ ## 14.0.0 β€” 2024-10-22 ### πŸ›  Breaking changes - Bumped iOS deployment target to 15.1. ([#30840](https://github.com/expo/expo/pull/30840) by [@tsapeta](https://github.com/tsapeta)) ### πŸ› Bug fixes - Add missing `react-native` peer dependencies for isolated modules. ([#30479](https://github.com/expo/expo/pull/30479) by [@byCedric](https://github.com/byCedric)) ## 13.0.1 β€” 2024-04-23 _This version does not introduce any user-facing changes._ ## 13.0.0 β€” 2024-04-18 ### πŸ’‘ Others - drop unused web `name` property. ([#27437](https://github.com/expo/expo/pull/27437) by [@EvanBacon](https://github.com/EvanBacon)) - Removed deprecated backward compatible Gradle settings. ([#28083](https://github.com/expo/expo/pull/28083) by [@kudo](https://github.com/kudo)) ## 12.8.1 - 2023-12-19 _This version does not introduce any user-facing changes._ ## 12.8.0 β€” 2023-11-14 ### πŸ›  Breaking changes - Bumped iOS deployment target to 13.4. ([#25063](https://github.com/expo/expo/pull/25063) by [@gabrieldonadel](https://github.com/gabrieldonadel)) - On `Android` bump `compileSdkVersion` and `targetSdkVersion` to `34`. ([#24708](https://github.com/expo/expo/pull/24708) by [@alanjhughes](https://github.com/alanjhughes)) ### πŸ’‘ Others - Remove `unimodule.json` in favour of `expo-module.config.json`. ([#25100](https://github.com/expo/expo/pull/25100) by [@reichhartd](https://github.com/reichhartd)) ## 12.7.0 β€” 2023-10-17 ### πŸ›  Breaking changes - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate)) ## 12.6.0 β€” 2023-09-04 ### πŸŽ‰ New features - Added support for React Native 0.73. ([#24018](https://github.com/expo/expo/pull/24018) by [@kudo](https://github.com/kudo)) ## 12.5.1 β€” 2023-08-02 _This version does not introduce any user-facing changes._ ## 12.5.0 β€” 2023-07-28 _This version does not introduce any user-facing changes._ ## 12.4.2 β€” 2023-06-28 ### πŸ› Bug fixes - Fixed missing constants on iOS, restricted possibility of starting multiple print jobs at once, which would lead to crashes. ([#23128](https://github.com/expo/expo/pull/23128) by [@behenate](https://github.com/behenate)) ## 12.4.1 β€” 2023-06-27 ### πŸ› Bug fixes - Fixed a regression after refactoring to Swift (restore functionality to print from web url or data string). ([#22997](https://github.com/expo/expo/pull/22997) by [@mroswald](https://github.com/mroswald), [@behenate](https://github.com/behenate)) ## 12.4.0 β€” 2023-06-21 ### πŸ› Bug fixes - Fixed Android build warnings for Gradle version 8. ([#22537](https://github.com/expo/expo/pull/22537), [#22609](https://github.com/expo/expo/pull/22609) by [@kudo](https://github.com/kudo)) ## 12.3.0 β€” 2023-05-08 ### πŸŽ‰ New features - Migrated iOS codebase to use Expo modules API. ([#21561](https://github.com/expo/expo/pull/21561) by [@behenate](https://github.com/behenate)) - Migrated Android codebase to use the Expo modules API and Kotlin coroutines. ([#21714](https://github.com/expo/expo/pull/21714) by [@behenate](https://github.com/behenate)) ### πŸ› Bug fixes - Fixed [Multiple Print Bug on iOS 16](https://github.com/expo/expo/issues/19399). ([#21561](https://github.com/expo/expo/pull/21561) by [@behenate](https://github.com/behenate)) ## 12.2.1 β€” 2023-02-09 _This version does not introduce any user-facing changes._ ## 12.2.0 β€” 2023-02-03 ### πŸ’‘ Others - On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall)) ## 12.1.0 β€” 2023-01-05 ### πŸ› Bug fixes - Fix `printAsync` not reflecting custom width/ height, `useMarkupFormatter` option preventing custom width/ height/ margin from being reflected. ([#18873](https://github.com/expo/expo/pull/20046) by [@keith-kurak](https://github.com/keith-kurak)) ## 12.0.0 β€” 2022-10-25 ### πŸ›  Breaking changes - Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta)) ### πŸ› Bug fixes - Fix crash on some Android devices when WebView returns an unknown error. ([#18911](https://github.com/expo/expo/pull/18911) by [@matkastner](https://github.com/matkastner)) ## 11.3.0 β€” 2022-07-07 _This version does not introduce any user-facing changes._ ## 11.2.0 β€” 2022-04-18 ### ⚠️ Notices - On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec)) ## 11.1.1 - 2022-02-01 ### πŸ› Bug fixes - Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo)) ## 11.1.0 β€” 2021-12-03 ### πŸ› Bug fixes - Fix page-breaks and margins not supported on iOS ([#14383](https://github.com/expo/expo/pull/14802) by [@cruzach](https://github.com/IjzerenHein)) ## 11.0.1 β€” 2021-10-01 _This version does not introduce any user-facing changes._ ## 11.0.0 β€” 2021-09-28 ### πŸ›  Breaking changes - Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach)) ### πŸŽ‰ New features - Add `markupFormatterIOS` option in `printToFileAsync` on iOS (default option can't handle html page breaks). ([#13799](https://github.com/expo/expo/pull/13799) by [@mstach60161](https://github.com/mstach60161)) - Deprecate `markupFormatterIOS` (string) in favor of `useMarkupFormatter` (boolean). ([#13897](https://github.com/expo/expo/pull/13897) by [@mstach60161](https://github.com/mstach60161)) ### πŸ› Bug fixes - Fix loading pdf. ([#13677](https://github.com/expo/expo/pull/13677) by [@mstach60161](https://github.com/mstach60161)) - Fix calculating the number of pages when printing HTML on iOS. ([#13633](https://github.com/expo/expo/pull/13633) by [@dsokal](https://github.com/dsokal)) - Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo)) ### πŸ’‘ Others - Rewrite print module from Java to Kotlin. ([#13538](https://github.com/expo/expo/pull/13538) by [@mstach60161](https://github.com/mstach60161)) - Migrated from `@unimodules/core` to `expo-modules-core`. ([#13757](https://github.com/expo/expo/pull/13757) by [@tsapeta](https://github.com/tsapeta)) ## 10.2.0 β€” 2021-06-16 ### πŸ› Bug fixes - Enable kotlin in all modules. ([#12716](https://github.com/expo/expo/pull/12716) by [@wschurman](https://github.com/wschurman)) ### πŸ’‘ Others - Migrated from `unimodules-file-system-interface` to `expo-modules-core`. - Build Android code using Java 8 to fix Android instrumented test build error. ([#12939](https://github.com/expo/expo/pull/12939) by [@kudo](https://github.com/kudo)) ## 10.1.0 β€” 2021-03-10 ### πŸŽ‰ New features - Updated Android build configuration to target Android 11 (added support for Android SDK 30). ([#11647](https://github.com/expo/expo/pull/11647) by [@bbarthec](https://github.com/bbarthec)) ### πŸ› Bug fixes - Remove peerDependencies and unimodulePeerDependencies from Expo modules. ([#11980](https://github.com/expo/expo/pull/11980) by [@brentvatne](https://github.com/brentvatne)) ## 10.0.0 β€” 2021-01-15 ### ⚠️ Notices - The package is now shipped with prebuilt binaries on iOS. You can read more about it on [expo.fyi/prebuilt-modules](https://expo.fyi/prebuilt-modules). ([#11224](https://github.com/expo/expo/pull/11224) by [@tsapeta](https://github.com/tsapeta)) ### πŸ›  Breaking changes - Dropped support for iOS 10.0 ([#11344](https://github.com/expo/expo/pull/11344) by [@tsapeta](https://github.com/tsapeta)) ## 9.2.0 β€” 2020-11-17 _This version does not introduce any user-facing changes._ ## 9.1.0 β€” 2020-08-18 _This version does not introduce any user-facing changes._ ## 9.0.2 β€” 2020-07-27 _This version does not introduce any user-facing changes._ ## 9.0.1 β€” 2020-05-29 _This version does not introduce any user-facing changes._ ## 9.0.0 β€” 2020-05-27 ### πŸ›  Breaking changes - The base64 output will no longer contain newline and special character (`\n`, `\r`) on Android. ([#7841](https://github.com/expo/expo/pull/7841) by [@jarvisluong](https://github.com/jarvisluong))