Sharing to Gmail app sets body as subject
Steps to reproduce
- Call share dialog with
title/subjectset totest, and setbodyparam totest body - When opening with Gmail app, the subject line and body will be set to
test body, effectively ignoring the subject/title params
Expected behaviour
Email subject set to 'test'
Actual behaviour
Email subject set to 'test body'
Environment
- React Native version: 0.55.4
- React Native platform + platform version: iOS 12.1.2
react-native-share
Version: 1.1.3
+1
Same issue here, occurring on iOS only.
+1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.
any comment?
any comment?
You can give a try ate the latest version? I suspect this is something related on how the app handle params on both ios and android, when calling Share.
You can provide the sample code that you used in this test?
same issue facing. did any one got solution for this? Any other alternative to handle share to all installed apps including gmail.
@MateusAndrade share anything on iOS with this library to the Gmail app... you'll see what we mean.
Basically using the same code you provide in the README.
@MateusAndrade share anything on iOS with this library to the Gmail app... you'll see what we mean.
Basically using the same code you provide in the README.
Im going to give a try with this today. Thanks for your feedback. :smile:
Any ETA, To fixing this? Its a kind of eyecatcher thing.
As soon as you PR a change to the example that lets others test I'm guessing :-). Asking for ETAs in open source is like heading to the charity food center and asking why they aren't hurrying up with your free stuff right?
Ok I will try.
same issue :( occurring on ios :(
same issue :( occurring on ios :(
HI @dungkv-1044 recently we landed a PR that handle this. You can gave a look at this here: https://github.com/react-native-community/react-native-share#sharesingleoptions-in-ios--android
#557
with the latest master
on Android, everything is fine. on iOS the target email address and subject is not filled.
const options = { url: blob, email: '[email protected]', subject: 'Hellol', type: 'application/pdf', social: Share.Social.EMAIL }
@thisisablock you can try pass a share_subjectto the options? This was implemented on #38
@MateusAndrade
made a retest on the latest master branch on iOS 13.1.1
const options = { url: blob, email: '[email protected]', subject: 'Hellol', type: 'application/pdf', social: Share.Social.EMAIL }
on iOS 13.1.1 Subject is now working. But the email sender is still not working on iOS. Android works as expected.
I am having the same issue. Any word on a fix?
target email not setting in android ,how do I fix this ?
Hi! Any updates here? We have react-native-share 3.0.0 and bug is still here.