mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Set the enabled state on disabled button views
Reviewed By: AaaChiuuu Differential Revision: D4722513 fbshipit-source-id: f4a4e6304594235b5da4e5be36358331e43bdbee
This commit is contained in:
committed by
Facebook Github Bot
parent
d80f9dfa99
commit
b5327dd388
@@ -202,12 +202,18 @@ const Text = React.createClass({
|
||||
* @platform ios
|
||||
*/
|
||||
minimumFontScale: PropTypes.number,
|
||||
/**
|
||||
* Specifies the disabled state of the text view for testing purposes
|
||||
* @platform android
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
},
|
||||
getDefaultProps(): Object {
|
||||
return {
|
||||
accessible: true,
|
||||
allowFontScaling: true,
|
||||
ellipsizeMode: 'tail',
|
||||
disabled: false,
|
||||
};
|
||||
},
|
||||
getInitialState: function(): Object {
|
||||
|
||||
Reference in New Issue
Block a user