mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 23:18:06 +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
@@ -157,6 +157,11 @@ public class ReactTextViewManager extends BaseViewManager<ReactTextView, ReactTe
|
||||
view.setIncludeFontPadding(includepad);
|
||||
}
|
||||
|
||||
@ReactProp(name = "disabled", defaultBoolean = false)
|
||||
public void setDisabled(ReactTextView view, boolean disabled) {
|
||||
view.setEnabled(!disabled);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateExtraData(ReactTextView view, Object extraData) {
|
||||
ReactTextUpdate update = (ReactTextUpdate) extraData;
|
||||
|
||||
Reference in New Issue
Block a user