question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sharing to Gmail app sets body as subject

See original GitHub issue

Steps to reproduce

  1. Call share dialog with title/subject set to test, and set body param to test body
  2. 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:35
  • Comments:36

github_iconTop GitHub Comments

9reactions
AlixBoucommented, Apr 9, 2020

The issue is still present on 3.2.0

Code used : Share.open({ message: ‘message’, subject: ‘subject’, });

Result on the native mailer of ios 12 : image

Result on gmail : image

3reactions
sitanshu-zymrcommented, May 28, 2019

Any ETA, To fixing this? Its a kind of eyecatcher thing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing to Gmail app sets body as subject · Issue #414 - GitHub
Steps to reproduce Call share dialog with title/subject set to test, and set body param to test body When opening with Gmail app, ......
Read more >
UIActivityViewController Gmail Share subject and body going ...
I am able to get subject and body in Default Mail App. But when I use to share the content with gmail then...
Read more >
Tips to read & send email in Gmail - Google Support
At the bottom, click Send. Note: To forward as an attachment, you can also right-click on a message or drag and drop the...
Read more >
14 handy hidden features in the Gmail Android app
Here's another handy long-press treasure to file away in your mental folder of Gmail Android tricks: Long-pressing on the subject line of any...
Read more >
How to set UIActivityViewController Gmail Share Subject ...
From that perspective, if you will pass any string items - they will be copied. App Store, Facebook and others are passing URLs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found