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

feat: Replace share text with an image on iOS #242

Merged
merged 17 commits into from
Oct 3, 2019

Conversation

jamespearson
Copy link
Contributor

@jamespearson jamespearson commented Oct 3, 2019

fixes #35

As raised in #35 the share content could be nicer... so I changed it (on iOS only) to this...

2512393C-6F8C-45CA-AE26-A1AD223A9814

This opens the image in a modal and used "react-native-view-shot" to capture the image and share.

At the moment there are 2 bugs in "share" that stop this from being perfect:

  1. Canceling the share doesn't trigger a fail. (hence the close button)
  2. Both react-native-share and expo-share do not currently support sharing an image on Android, which is why I've made this iOS only for now.

Here is the process in action:

share

@jamespearson jamespearson changed the title Replace share text with an image on iOS feat: Replace share text with an image on iOS Oct 3, 2019
Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

This is a very good quality PR, thanks a lot @jamespearson!

I'm not sure about the UX with the black modal, but I'll let @marceloscoelho decide on that. Anyways, the functionality is here and working well, so after these small comments I'm ready to merge this PR.

I have one question though @jamespearson: Is it possible to share in iOS a picture and a text? Or add a caption to the picture?


export const FrequencyContext = createContext();

export function FrequencyContextProvider ({
Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is a good idea, thanks!

App/Screens/ShareScreen/ShareScreen.tsx Show resolved Hide resolved
},

buttonContainer: {
paddingVertical: 20
Copy link
Member

Choose a reason for hiding this comment

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

theme.spacing.normal

App/stores/frequency.tsx Outdated Show resolved Hide resolved
@jamespearson
Copy link
Contributor Author

@amaurymartiny Fixed those notes, thanks.

I'm going to look at adding the wording with the image and the android issue, but thought once this was approved I'd raise both of those as new issues for anyone else who wanted to jump in too. What do you think?

Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@amaury1093 amaury1093 merged commit 3250390 into shootismoke:master Oct 3, 2019
@amaury1093
Copy link
Member

I'd raise both of those as new issues for anyone else who wanted to jump in too.

That's a good idea.

Thanks for the PR @jamespearson!

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.

Share Button with screenshot and link
2 participants