-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
iOS: Possible fix for #26577 #26653
iOS: Possible fix for #26577 #26653
Conversation
See facebook#26577 for the idea behind this change
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
I ran the code from this PR using patch-pacakge agaist the test/repro repository that I created. It does fix the iOS 13 bug: |
Thanks for submitting this! I ended up using a similar strategy and fixing this bug in |
See #26577 for the idea behind this change
Summary
When rendering a view nested inside a text on iOS 13 there will be a document icon behind this view. That's because RN uses attachments to make the text flow around the child-views.
This code replaces the attachment image with an empty image so that the rendered output looks like expected.
Changelog
[iOS] [Fixed] - Remove the document-icon behind childviews of text
Test Plan
See #26577 for an example where the old code would render incorrectly. The new code renders just like it's expected.
I also added many of childviews to different texts and added NSLog-statements to verify that only one empty placeholder-image gets created.
Since I'm not normally developing in Objective-C it might be a good idea for someone else to have a look at it and see if this is a good way to do it.