-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
When making a Button with an icon only, the icon is not centered #771
Comments
same issue |
Closing this since the |
@xavier-villelegier Some features like |
Fixes (react-native-elements#639 , react-native-elements#771 , react-native-elements#901) by not adding redundant `<Text/>` component with `styles.title.padding = 8` if title is empty.
* Remove Text from Button if title is empty Fixes (#639 , #771 , #901) by not adding redundant `<Text/>` component with `styles.title.padding = 8` if title is empty. * Handle empty string in title prop of Button Without this change, `title={null}` works correctly, but `title=""` throws an exception described and resolved in following issue: facebook/react-native#13243 (comment) This commit makes handles both `title={null}` and `title=""`.
Just FYI, in the |
The icon component inside Button adds a marginRight: 15px, what makes the icon get uncentered... the only way I found to fix this is...
The text was updated successfully, but these errors were encountered: