2017-07-18 21:33:31 +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.
|
2017-07-18 21:33:31 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import "RCTBackedTextInputViewProtocol.h"
|
|
|
|
#import "RCTBackedTextInputDelegate.h"
|
|
|
|
|
2018-01-24 07:17:57 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
#pragma mark - RCTBackedTextFieldDelegateAdapter (for UITextField)
|
|
|
|
|
|
|
|
@interface RCTBackedTextFieldDelegateAdapter : NSObject
|
|
|
|
|
2018-01-24 07:17:57 +00:00
|
|
|
- (instancetype)initWithTextField:(UITextField<RCTBackedTextInputViewProtocol> *)backedTextInputView;
|
2017-07-18 21:33:31 +00:00
|
|
|
|
2017-07-18 21:33:45 +00:00
|
|
|
- (void)skipNextTextInputDidChangeSelectionEventWithTextRange:(UITextRange *)textRange;
|
|
|
|
- (void)selectedTextRangeWasSet;
|
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#pragma mark - RCTBackedTextViewDelegateAdapter (for UITextView)
|
|
|
|
|
|
|
|
@interface RCTBackedTextViewDelegateAdapter : NSObject
|
|
|
|
|
2018-01-24 07:17:57 +00:00
|
|
|
- (instancetype)initWithTextView:(UITextView<RCTBackedTextInputViewProtocol> *)backedTextInputView;
|
2017-07-18 21:33:31 +00:00
|
|
|
|
2017-07-18 21:33:45 +00:00
|
|
|
- (void)skipNextTextInputDidChangeSelectionEventWithTextRange:(UITextRange *)textRange;
|
|
|
|
|
2017-07-18 21:33:31 +00:00
|
|
|
@end
|
2018-01-24 07:17:57 +00:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|