mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f43c9316e1
Summary: Add Native Commands handlers to TextInput. It is intentionally done in a way so that it can be easily swapped for codegened implementation once we properly type TextInput. We also add native commands to view managers for backwards compatibility. Changelog: [Internal] Reviewed By: TheSavior, shergin Differential Revision: D19412026 fbshipit-source-id: 8dc64275cf1da599b1bd5992a41035d51dd4148f
27 lines
658 B
Objective-C
27 lines
658 B
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <React/RCTMultilineTextInputViewManager.h>
|
|
#import <React/RCTMultilineTextInputView.h>
|
|
|
|
@implementation RCTMultilineTextInputViewManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (UIView *)view
|
|
{
|
|
return [[RCTMultilineTextInputView alloc] initWithBridge:self.bridge];
|
|
}
|
|
|
|
#pragma mark - Multiline <TextInput> (aka TextView) specific properties
|
|
|
|
#if !TARGET_OS_TV
|
|
RCT_REMAP_VIEW_PROPERTY(dataDetectorTypes, backedTextInputView.dataDetectorTypes, UIDataDetectorTypes)
|
|
#endif
|
|
|
|
@end
|