Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share button #76

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Share button #76

wants to merge 4 commits into from

Conversation

me-liu
Copy link
Contributor

@me-liu me-liu commented Apr 4, 2024

What's new in this PR

Description

  • share button opens a tab from the bottom, shares a link to the Add Case tab
  • there is an image

Screenshots


IMG_4869

How to review

Next steps

Relevant Links

Online sources

Related PRs

Deep Linking Base

CC: @ronniebeggs

@me-liu me-liu marked this pull request as ready for review April 4, 2024 07:24
Copy link
Collaborator

@ronniebeggs ronniebeggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good so far! I left a few questions and comments.

package.json Outdated Show resolved Hide resolved
Comment on lines 31 to 33
const addCaseUrl = Linking.createURL('?event=addCase&', {
queryParams: { caseUid },
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

event=addCase is technically a query parameter, so maybe we can clean up this function instead of concatenating multiple partial strings.

Comment on lines 36 to 38
await Share.share({
//message: 'ADD CASE',
url: `${addCaseUrl}/`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, is there anyway to customize how the link looks when shared with someone? Sometimes apps will attach an image or additional text to the link so users don't have to see the entire link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants