Skip to content

Commit 9d1adec

Browse files
committed
replace readwrite with assign
@lunaleaps The RCTTextInputComponentView.mm is the iOS Fabric Component for TextInput. Creates an instance _backedTextInput of type [BackedTextInputViewProtocol](https://github.com/facebook/react-native/blob/f0d0186ebad7312cdcd54b74d8d47e47bd4d741b/Libraries/Text/TextInput/RCTBackedTextInputViewProtocol.h#L20) using RCTUITextView or RCTUITextField constructors. https://github.com/facebook/react-native/blob/f0d0186ebad7312cdcd54b74d8d47e47bd4d741b/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm#L78 BackedTextInputViewProtocol, RCTUITextView and RCTUITextField headers should match (currently they don't, accessibilityErrorMessage type differs in RCTBackedTextInputViewProtocol). Sorry for the mistake. I'm rebasing, building, testing and pushing the commit soon. Thanks https://stackoverflow.com/questions/2255861/property-retain-assign-copy-nonatomic-in-objective-c
1 parent b006276 commit 9d1adec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Text/TextInput/Singleline/RCTUITextField.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ NS_ASSUME_NONNULL_BEGIN
2727
@property (nonatomic, strong, nullable) UIColor *placeholderColor;
2828
@property (nonatomic, assign) UIEdgeInsets textContainerInset;
2929
@property (nonatomic, assign, getter=isEditable) BOOL editable;
30+
@property (nonatomic, assign, nullable) NSString *accessibilityErrorMessage;
3031
@property (nonatomic, readwrite, nullable) NSString *currentAccessibilityError;
3132
@property (nonatomic, readwrite, nullable) NSString *previousAccessibilityError;
32-
@property (nonatomic, readwrite, nullable) NSString *accessibilityErrorMessage;
3333
@property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled;
3434
@property (nonatomic, strong, nullable) NSString *inputAccessoryViewID;
3535
@property (nonatomic, assign, readonly) CGFloat zoomScale;

0 commit comments

Comments
 (0)