New (actually old) way to make RCTUITextField editable/non-editable

Reviewed By: mmmulani, sahrens

Differential Revision: D5368181

fbshipit-source-id: 9580adb4980e758fba2bf4ee4460eaaa6823358a
This commit is contained in:
Valentin Shergin 2017-07-03 21:11:48 -07:00 committed by Facebook Github Bot
parent c28595e3fb
commit 0fd061ec3d
1 changed files with 2 additions and 2 deletions

View File

@ -73,12 +73,12 @@
- (BOOL)isEditable
{
return self.userInteractionEnabled;
return self.isEnabled;
}
- (void)setEditable:(BOOL)editable
{
self.userInteractionEnabled = editable;
self.enabled = editable;
}
#pragma mark - Caret Manipulation