-
-
Notifications
You must be signed in to change notification settings - Fork 998
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
implement rippleRadius for TouchableNativeFeedback #1069
implement rippleRadius for TouchableNativeFeedback #1069
Conversation
public void setBorderRadius(float borderRadius) { | ||
mBorderRadius = borderRadius * (float)getResources().getDisplayMetrics().density; |
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.
the float cast was not needed
mNeedBackgroundUpdate = true; | ||
} | ||
|
||
private Drawable applyRippleEffectWhenNeeded(Drawable selectable) { | ||
if (mRippleColor != null | ||
&& selectable != null |
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.
selectable != null
is covered by selectable instanceof RippleDrawable
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.
The code looks good. Thanks for this @vonovak! I'll let @jakub-gonet do the final call here and merge this
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.
LGTM, made a minor nit regarding naming.
android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java
Outdated
Show resolved
Hide resolved
@jakub-gonet any plans for a new release? Thank you! |
After gathering few more PRs we'll release the next version. Thanks for contributing 🎉 |
hi! this is a combination of
facebook/react-native#28600 and facebook/react-native#28009
please let me know if you need any extra information, thank you!