Button Refractor #3118
arpitBhalla
started this conversation in
Ideas
Replies: 1 comment
|
@pranshuchittora @arpitBhalla Can you add some details around why the change in this API? What's the motivation behind it and how will this help? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently there is lots of props which can be reduced, (for example styles,
containerStyle,buttonStyle,titleStyle,iconContainerStyle,loadingStyle) inButton, by doing:For customizing TextStyle
For iconPosition we can use
orientation='vertical' | 'horizontal'ORdisplay='column' | 'row'OR Booleancolumn.I think this will make component more customisable as users can add their own child as well, and make it easy to use, also in HTML/React the button is like
<button>My Text</button>or in RN-Paper & NativeBase, it would be easy for user to understand & implement different libraries.As we can't Break lib with this change, So it could be named
MaterialButtonORButton2.All reactions