-
-
Notifications
You must be signed in to change notification settings - Fork 445
react-share 3.0.0 #210
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
react-share 3.0.0 #210
Conversation
Checking if mobile, url would be 'api'. Instead in desktop browser would open 'web' whatsapp to share
Update EmailShareButton.js
Whatsapp button should check if mobile
Deprecations of LinkedIn and Google+, default aria-labels
Viber shares no longer prepend space and expose the separator as a prop.
Fully removing Google+ as all their APIs are shut down within 90 days
Update README.md
nygardk
left a comment
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.
I think this looks great!
I'd like to get a couple of additional minor things to this release:
- Remove assertion from
WeiboShareButtonfor the image (image shouldn't be required?). - Add
centerWindowOnScreenprop (or similar) to share buttons to control whether the opened window should be centered on the screen's center or to parent windows center position (current default). E.g. Weibo's share window seems to have logic of it's own that makes it jump to the center of the screen instead of the parent center shortly after it's opened, which is ugly behaviour. I'd like to make the screen center default for such share buttons.
I'll work on these ^ PRs as soon as possible!
Additionally, looking forward for version 4 we could look at adding Prettier and TypeScript. What do you think? TypeScript would make the library easier to use with the always-up-to-date built-in types (as opposed to types from DefinitelyTyped).
|
Everything sounds great!
I like the The implicit check works just great for most NPM packages - but not yet with I could pitch in to the TypeScript-conversion with ☝️in my mind. |
fix weibo share does not contain url
fix weibo image prop in demo
Feat: share button windowPosition prop
|
@nygardk I've updated the changelog and merged everything to the branch Would you mind building and publishing a |
|
@aautio This is now published as |
Nice! I'll test it next week within a few sites and get back to you. |
… docs have to be updated
Any update on testing 🙂? |
|
Hi @nygardk, sorry for dropping the ball. I've left the country for a few weeks without my laptop. I'll be back around 2nd or 3rd of May. Would you be ok with waiting that far? |
|
@aautio |
|
@nygardk - sorry the delay. But I've finally had the chance to test the v3 Short summary: It just works 👍 Should we go forward and remove the beta label, merge this pr and publish a |
|
Published! |
Here is a pull request from
v3branch containing all pending changes. UpdatedCHANGELOG.mdandREADME.mdare included.aria-labelis generated for the share buttons. It is based on the network name. UseadditionalPropsto override.<LinkedInShareCount/>. LinkedIn no longer provides an API to fetch share counts.titleanddescriptionfrom<LinkedInShareButtons/>.<EmailShareButton/>includesbodybeforeurl.<EmailShareButton/>and<ViberShareButton/>allow customization ofseparator.Sorry it took so long to prepare this - but better late than never I guess. @nygardk would you review this, merge and publish to NPM if all looks good? A correct date should be set to
CHANGELOG.mdline 3:## 3.0.0 (Feb ?, 2018)while merging.I should have time to do fixes/changes within the upcoming week if any are required.