[TextInput] Leave as-of-yet unsupported features disabled

This commit is contained in:
Eloy Durán 2020-10-08 20:35:56 +02:00
Родитель e616b763d6
Коммит 597a35117d
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -340,13 +340,13 @@ static RCTUIColor *defaultPlaceholderColor() // TODO(OSS Candidate ISS#2710739)
{
[super selectAll:sender];
#if !TARGET_OS_OSX // [TODO(macOS v0.63)
#if !TARGET_OS_OSX // TODO(macOS ISS#2323203) For `selectTextOnFocus` prop, which isn't supported on macOS atm.
// `selectAll:` does not work for UITextView when it's being called inside UITextView's delegate methods.
dispatch_async(dispatch_get_main_queue(), ^{
UITextRange *selectionRange = [self textRangeFromPosition:self.beginningOfDocument toPosition:self.endOfDocument];
[self setSelectedTextRange:selectionRange notifyDelegate:NO];
});
#endif // ]TODO(macOS v0.63)
#endif
}
#pragma mark - Layout

Просмотреть файл

@ -50,9 +50,9 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign, getter=isEditable) BOOL editable;
@property (nonatomic, assign) BOOL caretHidden;
@property (nonatomic, assign) BOOL enablesReturnKeyAutomatically;
#if !TARGET_OS_OSX // [TODO(macOS v0.63)
#if !TARGET_OS_OSX // TODO(macOS ISS#2323203)
@property (nonatomic, assign) UITextFieldViewMode clearButtonMode;
#endif // ]TODO(macOS v0.63)
#endif // TODO(macOS ISS#2323203)
@property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
// This protocol disallows direct access to `selectedTextRange` property because