Permalink
Browse files

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

Reviewed By: mmmulani, sahrens

Differential Revision: D5368181

fbshipit-source-id: 9580adb4980e758fba2bf4ee4460eaaa6823358a
  • Loading branch information...
shergin authored and facebook-github-bot committed Jul 4, 2017
1 parent c28595e commit 0fd061ec3d8ea81d4f53e42ea27220fd6f3f1386
Showing with 2 additions and 2 deletions.
  1. +2 −2 Libraries/Text/RCTUITextField.m
@@ -73,12 +73,12 @@ - (void)_updatePlaceholder
- (BOOL)isEditable
{
return self.userInteractionEnabled;
return self.isEnabled;
}
- (void)setEditable:(BOOL)editable
{
self.userInteractionEnabled = editable;
self.enabled = editable;
}
#pragma mark - Caret Manipulation

0 comments on commit 0fd061e

Please sign in to comment.