Skip to content

Commit bc183b6

Browse files
Single line TextInput fixes (#1284)
1 parent e9f8381 commit bc183b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
2828

2929
_backedTextInputView = [[RCTUITextField alloc] initWithFrame:self.bounds];
3030
_backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
31+
#if TARGET_OS_OSX // [TODO(macOS GH#774)
32+
_backedTextInputView.cell.scrollable = YES;
33+
_backedTextInputView.cell.usesSingleLineMode = YES;
34+
#endif // ]TODO(macOS GH#774)
3135
_backedTextInputView.textInputDelegate = self;
3236

3337
[self addSubview:_backedTextInputView];

0 commit comments

Comments
 (0)