Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add print orientation in print options #29

Merged
merged 4 commits into from
Mar 24, 2018

Conversation

chenmo230
Copy link
Contributor

No description provided.

@@ -55,6 +55,7 @@ public void print(final ReadableMap options, final Promise promise) {

final String html = options.hasKey("html") ? options.getString("html") : null;
final String filePath = options.hasKey("filePath") ? options.getString("filePath") : null;
final boolean isLandscape = options.hasKey("isLandscape")?options.getBoolean("isLandscape"):false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: space between operators.

@@ -165,6 +165,7 @@ const styles = StyleSheet.create({
| `html` | `string` | HTML string to print
| `fileName` | `string` | Custom Filename excluding .pdf extension or remote file url NOTE: iOS only supports https protocols
| `printerURL` | `string` | **iOS Only:** URL returned from `selectPrinterMethod()`
| `isLandscape` | `bool` | Landscape print; defalut value is false
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: default

@christopherdro christopherdro merged commit f91a399 into christopherdro:master Mar 24, 2018
christopherdro pushed a commit that referenced this pull request Mar 24, 2018
* ios options add isLandscape

* 默认打印方向

* update README: add isLandscape in print options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants