-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Rotating list view causes text to disappear and sometimes causes app to STB #813
Comments
I can confirm, the example UIExplorer project has the same bug. |
Yep this happens. |
Seeing this in my own layout: If I give Also if I give Maybe is has to do specifically with |
Also an important note: |
Tracing things back to this commit 3f6943c, related to changes in |
Did some more digging, it looks like it is related to the NSLayoutManager losing it's reference to the NSTextStorage which results in NSLayoutManager returning an empty glyphRange in RCTText's What's weird is when I compare NSLayoutManager.h says not to set This seems like unexpected UIKit behavior to me, what does everyone else think? |
Finally, I think I've got a fix, we were causing this error in RCTShadowText RCTMeasure function here https://github.com/facebook/react-native/blob/master/Libraries/Text/RCTShadowText.m#L28 Turns out, an NSLayoutManager allows, but does not work correctly when adding to more than one NSTextStorage receiver. I think I've got a PR brewing I should make shortly. |
Also fix RCTShadowText export name.
+1. Having the same issue. @vjeux |
Rotating the list view causes the text to disappear. In some cases, the UIExplorer sample STBs.
Perhaps the Flex layout has something to do with it?
My App:
UIExplorer:
The text was updated successfully, but these errors were encountered: