Skip to content
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

Open
gaeldestrem opened this issue Dec 5, 2024 · 5 comments
Open

[0.76.4] TextInput issue - TypingAttributes #2312

gaeldestrem opened this issue Dec 5, 2024 · 5 comments
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@gaeldestrem
Copy link

Environment

react-native -v: 15.0.1
npm ls react-native-macos: : 0.76.4
node -v: 18.20.5
npm -v: 10.8.2
yarn --version: 1.22.1
xcodebuild -version: Xcode 16.1 (Build version 16B40)

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.

Image

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: Image

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

@gaeldestrem gaeldestrem added the bug Something isn't working label Dec 5, 2024
@Saadnajmi
Copy link
Collaborator

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!

@bear-ei
Copy link

bear-ei commented Dec 6, 2024

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 0.76.0 has enabled the new architecture by default, but Fabric for react-native-macos in version 0.76.0 is not yet ready. Does this mean that it is currently not recommended to enable the new architecture in production for any version of react-native-macos?

@Saadnajmi
Copy link
Collaborator

@bear-ei yes, it's not ready on React Native macOS yet.

@bear-ei
Copy link

bear-ei commented Dec 6, 2024

@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.

@hoanguyen2011
Copy link

I got the same issue also. Hope this can be resolved soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

4 participants