Skip to content

Commit b001619

Browse files
committed
Fix build errors
1 parent 8a17e8e commit b001619

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Libraries/Text/TextInput/Singleline/RCTUITextField.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
#import <React/RCTTextAttributes.h>
1515

1616

17-
#if !TARGET_OS_OSX // [macOS]
18-
@interface RCTUITextFieldCell : NSTextFieldCell
19-
#else // [macOS
17+
#if TARGET_OS_OSX // [macOS
18+
2019
#if RCT_SUBCLASS_SECURETEXTFIELD
2120
#define RCTUITextFieldCell RCTUISecureTextFieldCell
2221
@interface RCTUISecureTextFieldCell : NSSecureTextFieldCell
23-
#endif // macOS]
22+
#else
23+
@interface RCTUITextFieldCell : NSTextFieldCell
24+
#endif
2425

2526
@property (nonatomic, assign) UIEdgeInsets textContainerInset;
2627
@property (nonatomic, getter=isAutomaticTextReplacementEnabled) BOOL automaticTextReplacementEnabled;

React/Views/ScrollView/RCTScrollView.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,17 +528,13 @@ - (void)setAccessibilityLabel:(NSString *)accessibilityLabel
528528
[_scrollView setAccessibilityLabel:accessibilityLabel];
529529
}
530530

531-
- (BOOL)resignFirstResponder
532531
- (void)setAccessibilityRole:(NSAccessibilityRole)accessibilityRole
533532
{
534-
return [_scrollView resignFirstResponder];
535533
[_scrollView setAccessibilityRole:accessibilityRole];
536534
}
537535

538-
- (void)setAccessibilityLabel:(NSString *)accessibilityLabel
539536
- (void)setInverted:(BOOL)inverted
540537
{
541-
[_scrollView setAccessibilityLabel:accessibilityLabel];
542538
BOOL changed = _inverted != inverted;
543539
_inverted = inverted;
544540
if (changed && _onInvertedDidChange) {

0 commit comments

Comments
 (0)