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.

[Documentation] Title vs Subject

See original GitHub issue

It looks like subject is used for email and the title in other cases. Some detailed documentation would be great so users understand what is used, where, and when.

The behavior seems a little inconsistent from my testing when using both title and subject. The Android Mail app will append title to the body thus accounting for a repeated subject but on iOS this works as expected. Also, one field is ignored in some cases and both in others.

I realize that this is quite dependent upon the app being used to share but just wondering if we can provide more information for a better understanding?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

11reactions
esuttoncommented, Jul 25, 2019

[iOS] Behavior is different depending on destination app selected.

From trial and error:

  • Apple mail app - ‘subject’ and ‘message’ appear as expected.
    • Even HTML message text is working. Excellent!
  • SMS - Only ‘message’ appears which is fine.
    • Multiple email attachments work. Very good.
  • Gmail and Outlook mail app
    • ‘message’ replaces the email subject. This seems like a bug?
    • ‘subject’ is not used and does not appear.
    • ‘title’ is not used and does not appear.
    • Multiple email attachments work. Very good.
    • [Outlook] - When press send, I get “Unable to deliver message at this time”. “Please open the Outlook app to send the draft”
      const shareOptions = {
        subject: 'subject',
        title: 'title',
        message: 'message',
        social: Share.Social.EMAIL,
        failOnCancel: false,
        urls,
      };
0reactions
Dror-Barcommented, Nov 22, 2021

Gmail and Outlook mail app ‘message’ replaces the email subject. This seems like a bug?’ ‘subject’ is not used and does not appear. ‘title’ is not used and does not appear.

I’m still facing this issue with react-native-share 7.1.2 Still looking for a workaround

Edit: this seems to be a bug with gmail app (tested with sharing a note - had same issue). Probably not related to this library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Titles and Subs - Ask MetaFilter
Best answer: Title is typically used when there is a singular identifier by which an item is known. Subject is what the item...
Read more >
[Documentation] Title vs Subject · Issue #433 · react-native ...
It looks like subject is used for email and the title in other cases. Some detailed documentation would be great so users understand...
Read more >
Titles & Headings in Technical Documents - Study.com
Titles are phrases that introduce the topic of the entire document. They should be easy to understand and address the subject of the...
Read more >
Title and Title Page - MIT
The subject line of a memo serves as the title. Long formal documents have a separate title page. For shorter documents, a title...
Read more >
Subject (documents) - Wikipedia
In library and information science documents (such as books, articles and pictures) are classified and searched by subject – as well as by...
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