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

V5: API changes #176

Merged
merged 13 commits into from
Jan 26, 2020
Merged

V5: API changes #176

merged 13 commits into from
Jan 26, 2020

Conversation

danilowoz
Copy link
Owner

@danilowoz danilowoz commented Jan 17, 2020

  • Update key name of primaryColor and secondaryColor for something more meaningful, maybe backgroundColor and foregroundColor;
  • Revisit width/height keys and if it really necessary to apply on viewBox attr its values;
  • When viewBox is set up, the svg is truncated, see fix(native/svg.tsx): svg is truncated when using a ViewBox -react-native #173;
  • Check aria-* is used right;
  • Rename the key name of uniquekey for something more meaningful, maybe id, or loadingId;
  • Remove uncessary keys: preserveAspectRatio, className...
  • Name the export of the main component (SVG);
  • Reduce bundle as much as it possible;
  • Update test (aria);

BREAKING CHANGE: Rename `primaryColor` to `backgroundColor` and `secondaryColor` to
`foregroundColor`.
src/native/Svg.tsx Outdated Show resolved Hide resolved
BREAKING CHANGE: Renamed prop key `uniquekey` to `uniqueKey`
BREAKING CHANGE: Shift `ariaLabel` to `title` prop, the value remains
@danilowoz
Copy link
Owner Author

🎉 This PR is included in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants