-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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: correct Button elevation #2735
Conversation
related to #2736? cc @lukewalczak |
@tasugi could you please provide the snack to the issue which you're solving, where we can observe the bug? |
@lukewalczak Sure! I created a snack. https://snack.expo.io/@tasugi/reactnativepaper-pr2735 If you press the button, you can change the mode of it |
Use useEffect Co-authored-by: Luke Walczak <[email protected]>
@lukewalczak Thank you for suggestions! |
Fixed an issue that caused the test to fail. |
Thanks @tasugi! |
Summary
It has a bug that Button elevation is still zero after mode is changed to
contained
from other modes.This PR fixes this.
Test plan
contained
.contained
mode dynamically(e.g. on button press).