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

Fix/Badge - add hitSlop support to badge container #724

Merged
merged 3 commits into from
Apr 13, 2020

Conversation

ArnonZ
Copy link
Contributor

@ArnonZ ArnonZ commented Mar 29, 2020

Some use cases of Badge require enlarging hit area.
Added specific support for hitSlop prop instead of spreading {...others} prop for it being the safer and more controlled option.

@@ -212,6 +212,7 @@ export default class Badge extends PureBaseComponent {
borderWidth,
backgroundColor,
containerStyle,
hitSlop,
Copy link
Collaborator

Choose a reason for hiding this comment

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

please declare this prop in prop types

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@ArnonZ ArnonZ requested a review from ethanshar April 13, 2020 01:37
@ethanshar ethanshar merged commit 6c04eae into master Apr 13, 2020
@ArnonZ ArnonZ deleted the fix/badge_hit_slop branch September 21, 2020 08:28
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.

None yet

2 participants