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 authored and Facebook Github Bot committed 2016-10-14 19:43:40 -07:00
1 parent efcdef711e
commit c32ab7e608
3 files changed
+40

No files matched your search

+14
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"
/>
);
},
},
];