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
This commit is contained in:
Timur Gibadullin
2016-10-14 19:39:00 -07:00
committed by Facebook Github Bot
parent efcdef711e
commit c32ab7e608
3 changed files with 40 additions and 0 deletions

View File

@@ -93,4 +93,18 @@ exports.examples = [
);
},
},
{
title: 'Disabled Button',
description: 'All interactions for the component are disabled.',
render: function() {
return (
<Button
disabled
onPress={onButtonPress}
title="I Am Disabled"
accessibilityLabel="See an informative alert"
/>
);
},
},
];