mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 12:11:47 +08:00
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:
committed by
Facebook Github Bot
parent
efcdef711e
commit
c32ab7e608
@@ -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"
|
||||
/>
|
||||
);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user