expo-print
Advanced tools
Comparing version 11.0.3 to 11.0.4
@@ -42,2 +42,6 @@ export declare type PrintOptions = { | ||
orientation?: OrientationType['portrait'] | OrientationType['landscape']; | ||
/** | ||
* **Available on iOS only.** Page margins for the printed document. | ||
*/ | ||
margins?: PageMargins; | ||
}; | ||
@@ -61,2 +65,8 @@ export declare type Printer = { | ||
} | ||
export declare type PageMargins = { | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
}; | ||
export declare type FilePrintOptions = { | ||
@@ -83,5 +93,5 @@ /** | ||
/** | ||
* Padding for the printed document. | ||
* **Available on iOS only.** Page margins for the printed document. | ||
*/ | ||
padding?: FilePrintPadding; | ||
margins?: PageMargins; | ||
/** | ||
@@ -92,8 +102,2 @@ * Whether to include base64 encoded string of the file in the returned object. | ||
}; | ||
export declare type FilePrintPadding = { | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
}; | ||
export declare type FilePrintResult = { | ||
@@ -100,0 +104,0 @@ /** |
@@ -13,2 +13,8 @@ # Changelog | ||
## 11.0.4 — 2021-11-05 | ||
### 🐛 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.3 — 2021-10-21 | ||
@@ -15,0 +21,0 @@ |
{ | ||
"name": "expo-print", | ||
"version": "11.0.3", | ||
"version": "11.0.4", | ||
"description": "Provides an API for iOS (AirPrint) and Android printing functionality.", | ||
@@ -37,3 +37,3 @@ "main": "build/Print.js", | ||
"dependencies": { | ||
"expo-modules-core": "~0.4.4" | ||
"expo-modules-core": "~0.4.7" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4fa0497a180ae707fa860cb03858630ab7af19f4" | ||
"gitHead": "74665a05e2bc8c20c23c07e1b3a8b92b2ed5d875" | ||
} |
@@ -16,3 +16,3 @@ # expo-print | ||
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/expo/expo/tree/master/packages/react-native-unimodules) before continuing. | ||
For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing. | ||
@@ -19,0 +19,0 @@ ### Add the package to your npm dependencies |
@@ -43,2 +43,6 @@ // @needsAudit | ||
orientation?: OrientationType['portrait'] | OrientationType['landscape']; | ||
/** | ||
* **Available on iOS only.** Page margins for the printed document. | ||
*/ | ||
margins?: PageMargins; | ||
}; | ||
@@ -67,2 +71,10 @@ | ||
// @needsAudit | ||
export type PageMargins = { | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
}; | ||
// @docsMissing | ||
@@ -90,5 +102,5 @@ export type FilePrintOptions = { | ||
/** | ||
* Padding for the printed document. | ||
* **Available on iOS only.** Page margins for the printed document. | ||
*/ | ||
padding?: FilePrintPadding; | ||
margins?: PageMargins; | ||
/** | ||
@@ -101,10 +113,2 @@ * Whether to include base64 encoded string of the file in the returned object. | ||
// @needsAudit | ||
export type FilePrintPadding = { | ||
top: number; | ||
right: number; | ||
bottom: number; | ||
left: number; | ||
}; | ||
// @needsAudit | ||
export type FilePrintResult = { | ||
@@ -111,0 +115,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
520078
435
5
Updatedexpo-modules-core@~0.4.7