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

implement rippleRadius for TouchableNativeFeedback #1069

Merged
merged 4 commits into from
Jul 7, 2020

Conversation

vonovak
Copy link
Contributor

@vonovak vonovak commented May 19, 2020

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!

public void setBorderRadius(float borderRadius) {
mBorderRadius = borderRadius * (float)getResources().getDisplayMetrics().density;
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@vonovak
Copy link
Contributor Author

vonovak commented Jun 30, 2020

@osdnk @kmagiera sorry to ping you, would you be able to review (and hopefully release) this soon so that RNGH is on-par with RN 63? Thanks!

Copy link
Member

@kmagiera kmagiera left a 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

Copy link
Member

@jakub-gonet jakub-gonet left a 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.

@jakub-gonet jakub-gonet merged commit e4d0618 into software-mansion:master Jul 7, 2020
@vonovak vonovak deleted the support-ripple-radius branch July 7, 2020 11:34
@vonovak
Copy link
Contributor Author

vonovak commented Jul 7, 2020

@jakub-gonet any plans for a new release? Thank you!

@jakub-gonet
Copy link
Member

After gathering few more PRs we'll release the next version. Thanks for contributing 🎉

braincore pushed a commit to braincore/react-native-gesture-handler that referenced this pull request Mar 4, 2021
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.

3 participants