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: extend Button props by adding onPressIn and onPressOut #3277

Merged
merged 2 commits into from
Aug 8, 2022

Conversation

lukewalczak
Copy link
Member

Solves: #3185

Summary

PR extends Button component by adding onPressIn and onPressOut props.
Refines button's elevation.

Test plan

New props are covered by tests.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@callstack-bot
Copy link

callstack-bot commented Jul 25, 2022

Hey @lukewalczak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Copy link
Member

@slavikdenis slavikdenis left a comment

Choose a reason for hiding this comment

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

@lukewalczak What do you think about using toHaveBeenCalledTimes(1) instead of toHaveBeenCalled() to ensure, that the function doesn't get called multiple times?

@lukewalczak
Copy link
Member Author

@slavikdenis sure, that make sense

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

The mobile version of example app from this branch is ready! You can see it here

.

@slavikdenis slavikdenis self-requested a review August 3, 2022 12:36
@lukewalczak lukewalczak merged commit 996fe1d into main Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants