From c32ab7e60820eeca4f13722e652251b3e67d795e Mon Sep 17 00:00:00 2001 From: Timur Gibadullin Date: Fri, 14 Oct 2016 19:39:00 -0700 Subject: [PATCH] Add disabled prop Summary: Implemented feature requested in https://github.com/facebook/react-native/issues/10354, updated docs. The colours were picked from native interface for iOS and from material-ui for android. Closes https://github.com/facebook/react-native/pull/10398 Differential Revision: D4026189 Pulled By: ericvicenti fbshipit-source-id: f3316e76f5a4126c07ffcdfb134cd902f40624d5 --- Examples/UIExplorer/js/ButtonExample.js | 14 ++++++++++ Libraries/Components/Button.js | 26 ++++++++++++++++++ .../src/react-native/img/buttonExample.png | Bin 256782 -> 338276 bytes 3 files changed, 40 insertions(+) diff --git a/Examples/UIExplorer/js/ButtonExample.js b/Examples/UIExplorer/js/ButtonExample.js index a9c68847d..b84b3ecbd 100644 --- a/Examples/UIExplorer/js/ButtonExample.js +++ b/Examples/UIExplorer/js/ButtonExample.js @@ -93,4 +93,18 @@ exports.examples = [ ); }, }, + { + title: 'Disabled Button', + description: 'All interactions for the component are disabled.', + render: function() { + return ( +