-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
NSRange Exception with onPress on Text #756
Comments
Have a feeling it's related to #749 |
Indeed, same issue - you'll need to downgrade for now @RogerGL |
same issue! 'NSRangeException', reason: '*** NSRunStorage, _NSBlockNumberForIndex(): index (2) beyond array bounds (0)' |
Ah, @a2 is already on it. |
+1. Got the same issue |
See #749. |
Summary: Fix `RCTText` crashes by wholly replacing the underlying `NSTextStorage`. This fixes GitHub issues facebook#748, facebook#749, and facebook#756. Test Plan: There are a couple sample apps in facebook#749 that I used for testing this.
The following code worked in 0.3.4 but stopped working with any newer version:
The problem is the onPress handler on the Text element. It works if the onPress handler is moved to the TouchableHighlight element.
BTW: the stack trace is
The text was updated successfully, but these errors were encountered: