Fixed: blurOnSubmit should be true by default for singleline <TextInput>

Differential Revision: D5224356

fbshipit-source-id: e8a9f607270ab93e40cca3b701bdcb31524137fe
This commit is contained in:
Valentin Shergin 2017-06-10 08:19:34 -07:00 committed by Facebook Github Bot
parent 01afc16bfc
commit b6cf4eeed6

View File

@ -42,6 +42,9 @@
_bridge = bridge;
_eventDispatcher = bridge.eventDispatcher;
// `blurOnSubmit` defaults to `true` for <TextInput multiline={false}> by design.
_blurOnSubmit = YES;
_textField = [[RCTUITextField alloc] initWithFrame:self.bounds];
_textField.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;