-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Conversation
db00016
to
c77f94f
Compare
c77f94f
to
f2157b2
Compare
There was a problem hiding this 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 ({ |
There was a problem hiding this comment.
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!
}, | ||
|
||
buttonContainer: { | ||
paddingVertical: 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theme.spacing.normal
@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? |
fb65781
to
7c01b69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
That's a good idea. Thanks for the PR @jamespearson! |
fixes #35
As raised in #35 the share content could be nicer... so I changed it (on iOS only) to this...
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:
Here is the process in action: