-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Add outline around selected Social Link block #53377
[RNMobile] Add outline around selected Social Link block #53377
Conversation
Size Change: 0 B Total Size: 1.44 MB ℹ️ View Unchanged
|
@@ -119,6 +119,7 @@ const SocialLinkEdit = ( { | |||
toValue: 1, | |||
duration: ANIMATION_DURATION, | |||
easing: Easing.circle, | |||
useNativeDriver: false, |
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.
When using Animated
, it is required to specify the value of useNativeDriver
. This change suppresses the LogBox warning:
Animated: useNativeDriver was not specified. This is a required option and must be explicitly set to true or false.
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! Works as expected, I tested it on both iOS and Android. Friendly reminder to open the companion Gutenberg Mobile PR to bring these changes there 🚀
👋 Hey @derekblank, while testing in WP 23.1-rc-2 beta, I noticed the outline isn't shown when new social icons are added. The outlines show for the default icons but not for the ones added. The screen recording shows me adding and selecting the Facebook icon, but no outline is shown. Screen_Recording_20230828_171035_WordPress.mov |
@guarani Good catch! I'll check this out. |
Thanks @derekblank! |
What?
Adds outline around the selected Social Link icon on mobile.
Why?
Block Outlines were updated in #52702, with many outlines being removed. Design feedback indicated that a displaying an outline around the selected Social Link icon would help users to note which icon is selected.
How?
Updates the BlockOutline component to include the Social Link block as a block to be outlined.
Testing Instructions
Screenshots or screencast
Social.Links.mov