Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Text from Button if title is empty (#1049)
* 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=""`.
- Loading branch information