-
Notifications
You must be signed in to change notification settings - Fork 569
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
Centering and shadows on android fixed with prop fixNativeFeedbackRadius #228
base: master
Are you sure you want to change the base?
Conversation
…ius. When setting fixNativeFeedbackRadius to true and giving the ActionButton position 'Center'. The AtionButton and ActionButtonItems would have an offset from the center due to incorrect styling. fixNativeFeedbackRadius also caused an ugly shadow on ActionButtonItems and their respective lable, and also a cropped dropshadow. For the ActionButtonItem, this was due to the shadow styling was set on the wrong element for android. As for the lable, we do not need to set the fixNativeFeedbackRadius to the touchableBackground (the lable is rectangular anyway). You'll notice that the ripple effect on the lable would extend in a circular fashion outside the borders of the lable.
Please merge fixNativeFeedbackRadius=true not work on ActionButtonItem |
maybe if conflicts get resolved |
I'm struggling a bit to fix this merge conflict without reintroducing bug #223 . I'll give it another go this week. |
I pushed changes that solved the conflict, but I should have written a better commit message. Before I was fairly certain I wouldn't break anything on IOS, and now i'm i bit less certain unfortunatly. This was the best I could come up with. The shadow props needed to be applied to the parent view of
I've tested multiple sizes of ActionButtonItem in combination with all different position placements. Also tested with and without Should be tested similarly on IOS. |
@mastermoo some news ? 👍 |
@iCodePup sry, I didn't find the time to test it yet and I don't want to merge it blindly |
@mastermoo thanks! can you please publish a new release with this issue fixed? |
Hey , |
When setting
fixNativeFeedbackRadius
to true and giving the ActionButton position 'Center'. The ActionButton and ActionButtonItems would have an offset from the center due to incorrect styling.fixNativeFeedbackRadius also caused an ugly shadow on ActionButtonItems and their respective lable, and also a cropped dropshadow.
For the ActionButtonItem, this was due to the shadow styling was set on the wrong element for android. As for the lable, we do not need to set the
fixNativeFeedbackRadius
to the touchableBackground (the lable is rectangular anyway). You'll notice that the ripple effect on the lable would extend in a circular fashion outside the borders of the lable.Fixes #227
Before:
fixNativeFeedbackRadius=true on ActionButton and the second ActionButtonItem
After: