-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Button Block #18823
[RNMobile] Button Block #18823
Conversation
439466b
to
90a60e0
Compare
90a60e0
to
1fc7530
Compare
32a9934
to
148ff59
Compare
@lukewalczak Regarding the |
@pinarol Thanks for reporting that weird behaviour, which I didn't notice before. I saved in clipboard Can you please check if you're able to follow my steps and reproduce it as well? |
Yes but it shouldn't override the already existing link. When I try on Android with an already existing Button, it is overriding that Button's link as well. |
I just tested with WPiOS as well, and couldn't generate any odd behavior, here are the things I've tested:
Links:
So after we sort out the link override on Android, this should be ready to go. I haven't checked the latest version of the code yet, I'll do that tomorrow. |
I see, will investigate it! |
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.
Dropping some code review comments.
I am happy we reverted changes to |
9109463
to
e6452d4
Compare
UPDATES
|
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! 🎉 Great job!
I repeated my tests on both platforms.
Fixes wordpress-mobile/gutenberg-mobile#1513
Ref to gb-mobile: wordpress-mobile/gutenberg-mobile#1616
Ref to WordPress-Android: wordpress-mobile/WordPress-Android#10902
Ref to WordPress-iOS:wordpress-mobile/WordPress-iOS#13060
This PR introduces 1st iteration of mobile
Button
block component.To achieve gradient background color on mobile
react-native-linear-gradient
comes in handy.The first iteration includes:
Button
with:RichText
✅Blockers:
* issue with expanding and shrinkingRichText
on iOS ❌* issue with shrinkingRichText
on Android ❌* issue with text color on WordPress-iOS ❌To test:
-> Gradient
-> Custom background color
-> Custom text color
-> Border radius
-> Add link
Screenshot / gifs:
ANDROID
IOS
IOS Dark Mode
Expanding and shrinking RichText
Settings
Update release notes:
RELEASE-NOTES.txt
.Checklist: