RCTBackedTextInputDelegateAdapter.h 1018 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <UIKit/UIKit.h>
  8. #import "RCTBackedTextInputViewProtocol.h"
  9. #import "RCTBackedTextInputDelegate.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. #pragma mark - RCTBackedTextFieldDelegateAdapter (for UITextField)
  12. @interface RCTBackedTextFieldDelegateAdapter : NSObject
  13. - (instancetype)initWithTextField:(UITextField<RCTBackedTextInputViewProtocol> *)backedTextInputView;
  14. - (void)skipNextTextInputDidChangeSelectionEventWithTextRange:(UITextRange *)textRange;
  15. - (void)selectedTextRangeWasSet;
  16. @end
  17. #pragma mark - RCTBackedTextViewDelegateAdapter (for UITextView)
  18. @interface RCTBackedTextViewDelegateAdapter : NSObject
  19. - (instancetype)initWithTextView:(UITextView<RCTBackedTextInputViewProtocol> *)backedTextInputView;
  20. - (void)skipNextTextInputDidChangeSelectionEventWithTextRange:(UITextRange *)textRange;
  21. @end
  22. NS_ASSUME_NONNULL_END