Set the enabled state on disabled button views

Reviewed By: AaaChiuuu

Differential Revision: D4722513

fbshipit-source-id: f4a4e6304594235b5da4e5be36358331e43bdbee
This commit is contained in:
Andrew Y. Chen
2017-04-06 21:21:45 -07:00
committed by Facebook Github Bot
parent d80f9dfa99
commit b5327dd388
4 changed files with 13 additions and 1 deletions

View File

@@ -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 {