-
Notifications
You must be signed in to change notification settings - Fork 24.6k
Android inline image width/height is reversed. #13191
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

Comments
Anyone want to submit a PR and small test plan? |
Hello, I see that the width and height are reversed in the link provided by "bennyguitar". I am new to React-Native, but I was wondering if I can still help out. |
@ide PR sounds easy, test plan is harder, I would create this textView with some demo image, and then check with Espresso on Android that width and height of view is same as predefined image. |
@Yurii-Laguta looks like it's already in: c311096 |
A test plan is not quite the same as automated tests. Just providing repro steps and screenshots is helpful. |
The test plan should be:
Before this issue, you could pass in Basically:
|
Should be closed as the PR was imported into |
Summary: Inspired by facebook#13191 Creating a test app with spannable `TextView`, and observe the text width/height Closes facebook#13203 Differential Revision: D4795809 Pulled By: hramos fbshipit-source-id: a7c6845abe7472dc7ad2f1f978a20d02fe49eda8

This is on master as of issue creation.
You can see the problem right here:
https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java#L138
The text was updated successfully, but these errors were encountered: