Different behavior in New Architecture with truncated Text
that has an Image
child
#49106
Labels
Component: Image
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
Given the following component:
Its behavior is different between the old and new architectures. The old architecture has what I believe is the expected output, whereas the new architecture displays the image even after its parent
Text
component is truncated.One peculiar thing is that DevTools reports an
Image
component when running either architecture, though from the native side it seems that the nativeImage
component gets created/rendered in new architecture where in old architecture it seems completely ignored.Also, with the Expo Snack it seems that web works as expected while both Android and iOS reproduce the issue.
Steps to reproduce
Start the Expo Snack, or use a new RN project and render the component provided in the description.
React Native Version
0.76.7
Affected Platforms
Runtime - Android, Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/wdcZhg_ZXRrcnVVnQvNO3
Screenshots and Videos
Dev Tools Screenshot
The hierarchy reported looks identical between old and new architectures (though this screenshot is specifically from the old architecture), this just has the
Image
component highlighted in case its attributes are helpful.The text was updated successfully, but these errors were encountered: