10000 fix(social-share): ipad adjustment · NativeScript/plugins@8c0da52 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c0da52

Browse files
committed
fix(social-share): ipad adjustment
closes #79
1 parent de46e2e commit 8c0da52

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/social-share/index.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ function share(thingsToShare) {
1010
presentViewController.barButtonItem = page.ios.navigationItem.rightBarButtonItems[0];
1111
} else {
1212
presentViewController.sourceView = page.ios.view;
13+
presentViewController.permittedArrowDirections = UIPopoverArrowDirection.Unknown;
14+
if (page && page.ios && page.ios.view) {
15+
presentViewController.sourceRect = CGRectMake(CGRectGetMidX(page.ios.view.bounds), CGRectGetMaxY(page.ios.view.bounds), 0, 0);
16+
}
1317
}
1418
}
1519

packages/social-share/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/social-share",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Social sharing widget handling for NativeScript",
55
"main": "index",
66
"typings": "index.d.ts",

0 commit comments

Comments
 (0)
0