From 33ec6096a65f61353aac5ccecd1327400934ebd4 Mon Sep 17 00:00:00 2001 From: udarts Date: Thu, 30 Nov 2017 10:27:22 +0100 Subject: [PATCH] Added option to add icon to buttons Added an option to add icon to buttons --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index d132036..3eecf96 100644 --- a/index.js +++ b/index.js @@ -13,6 +13,8 @@ import styles from './styles'; const ButtonShape = { title: PropTypes.string.isRequired, + icon: PropTypes.string, + iconSize: PropTypes.number, style: ViewPropTypes.style, handler: PropTypes.func, disabled: PropTypes.bool, @@ -39,6 +41,8 @@ function getButtonElement(data, style) { {(!data || data.props) ? data : (