-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.76.4] TextInput issue - TypingAttributes #2312
Comments
HI, I want to note that Fabric on React Native macOS is not ready as of 0.76. I have.. much work going to get it ready, but I wouldn't use it in production yet. That being said, I really appreciate these bug reports, so thank you! |
Hi, I want to confirm an issue regarding the new architecture (new arch). React Native in version |
@bear-ei yes, it's not ready on React Native macOS yet. |
Alright. Thank you for the response. Looking forward to the new architecture being ready soon. |
I got the same issue also. Hope this can be resolved soon |
Environment
Steps to reproduce the bug
I am trying to update my project from 0.75.3 to 0.76.4 as I am really excited about the new Fabric changes that got merged (Thank you for it 🙌).
I encountered the following error when starting :
Error Thread 1: "-[RCTUITextField typingAttributes]: unrecognized selector sent to instance 0x1243e8000"
I managed to reproduce the error with a simple
<TextInput value={value} onChangeText={onChangeText} />
By digging into the react-native code, I found that the issues comes the line
_originalTypingAttributes = [_backedTextInputView.typingAttributes copy];
. The object seems undefined and replacing it by an empty dictionary allows the application to start.I also found a related issue when typing into the TextInput :
FAULT: NSInvalidArgumentException: -[RCTUITextField setTypingAttributes:]: unrecognized selector sent to instance 0x129a1e320; (user info absent)
Commenting the following code prevents this error:
Here is my patch-package (some changes are specific to my project) : react-native-macos+0.76.4.patch
Expected Behavior
No response
Actual Behavior
No response
Reproducible Demo
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: