From ba56abeaad50649e83d2805c71ec8ded0f91b96b Mon Sep 17 00:00:00 2001 From: Tolu Olowu Date: Wed, 21 Sep 2016 00:56:28 +0100 Subject: [PATCH] Support for 'disabled' buttons Allow 'disabled' as a prop in Buttons --- src/buttons/Button.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/buttons/Button.js b/src/buttons/Button.js index aa909ce96b..f0e8748542 100644 --- a/src/buttons/Button.js +++ b/src/buttons/Button.js @@ -31,6 +31,7 @@ const Button = ({ textStyle, small, iconRight, + disabled, fontWeight, fontFamily}) => { let iconElement @@ -55,7 +56,8 @@ const Button = ({ return ( + onPress={onPress || log} + disabled={disabled || false}>