react-native-paper
react-native-paper copied to clipboard
fix : Button contentStyle is not correct #4326
trafficstars
Motivation
Button contentStyle prop was handling icons style when icon is added in the right/left of the Text. When the icon is added on top of the text, iconStyle has to be added for handling the alignment issue.
Related issue
https://github.com/callstack/react-native-paper/issues/4326
Test plan
Test Screenshot of the Button with Image on Top Text is shared below,
Button Text : "Image On Top"
I have tested this locally, and it works as expected.
Hey @Jayanthidhanabalan, thank you for your pull request 🤗. The documentation from this branch can be viewed here.