Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
250
Merge Requests
14
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Compare Revisions
15315a65049d72be38a6f6a05488e380c4433818...04dd95c0f569b065af2a05602b467a442d7395c9
Source
04dd95c0f569b065af2a05602b467a442d7395c9
...
Target
15315a65049d72be38a6f6a05488e380c4433818
Compare
Commits (2)
(fix) share dialog not shown on ios
· bf719d6c
Martin Santangelo
authored
2 days ago
bf719d6c
Merge branch 'fix/ios-share-dialog-not-shown' into release/3.11.0
· 04dd95c0
Martin Santangelo
authored
5 minutes ago
04dd95c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
src/share/ShareService.js
View file @
04dd95c0
import
{
Share
}
from
'
react-nativ
e
'
;
import
Share
from
'
react-native-shar
e
'
;
/**
* Share service
...
...
@@ -10,7 +10,6 @@ class ShareService {
* @param {string} referrer guid
*/
invite
(
guid
)
{
const
url
=
'
https://www.minds.com/register?referrer=
'
+
guid
;
const
title
=
'
Join me on Minds.com
'
;
...
...
@@ -23,18 +22,18 @@ class ShareService {
* @param {string} url
*/
share
(
title
,
url
)
{
msg
=
{
title
:
title
,
message
:
url
,
};
opt
=
{
subject
:
title
,
dialogTitle
:
title
}
Share
.
share
(
msg
,
opt
);
// added a settimeout as a workaround for ios, without it the share dialog is not shown
setTimeout
(
async
()
=>
{
try
{
await
Share
.
open
({
title
:
title
,
message
:
url
,
});
}
catch
(
err
)
{
console
.
log
(
err
);
}
},
600
);
}
}
export
default
new
ShareService
();
\ No newline at end of file
export
default
new
ShareService
();
This diff is collapsed.