2015-03-23 20:28:42 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-03-23 20:28:42 +00:00
|
|
|
*/
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2017-12-20 03:48:22 +00:00
|
|
|
#import "RCTSinglelineTextInputViewManager.h"
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2018-01-24 07:17:57 +00:00
|
|
|
#import "RCTBaseTextInputShadowView.h"
|
2017-12-20 03:48:22 +00:00
|
|
|
#import "RCTSinglelineTextInputView.h"
|
2015-08-06 16:53:20 +00:00
|
|
|
|
2017-12-20 03:48:22 +00:00
|
|
|
@implementation RCTSinglelineTextInputViewManager
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-04-08 12:42:43 +00:00
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
|
2017-03-13 20:31:35 +00:00
|
|
|
- (RCTShadowView *)shadowView
|
|
|
|
{
|
2018-01-24 07:17:57 +00:00
|
|
|
RCTBaseTextInputShadowView *shadowView =
|
|
|
|
(RCTBaseTextInputShadowView *)[super shadowView];
|
|
|
|
|
|
|
|
shadowView.maximumNumberOfLines = 1;
|
|
|
|
|
|
|
|
return shadowView;
|
2017-03-13 20:31:35 +00:00
|
|
|
}
|
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
- (UIView *)view
|
|
|
|
{
|
2017-12-20 03:48:22 +00:00
|
|
|
return [[RCTSinglelineTextInputView alloc] initWithBridge:self.bridge];
|
2015-11-05 05:01:49 +00:00
|
|
|
}
|
|
|
|
|
2015-02-20 04:10:52 +00:00
|
|
|
@end
|