-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Area: LayoutArea: TextPartner: FacebookWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.bug
Milestone
Description
Problem Description
Filing this here, since I can only repro on react-native-windows right now, but I found a very peculiar case where text gets truncated when it should wrap. I believe this is a Yoga caching issue, but react-native-windows may be the best place to debug.
Steps To Reproduce
- Copy app from Gist here: https://gist.github.com/rozele/7a8704a69ff548613407c0f9fb72257b
- Resize window on the boundary of where the text would break from one line to two (very slowly and carefully, as shown in the video):
2022-01-07.17-14-24.mp4
- Notice that, if the stars align (and presumably the Yoga node measurement caches are in the right state), the text will be truncated.
Expected Results
Text should never be truncated.
CLI version
npx react-native --version
Environment
npx react-native infoTarget Platform Version
No response
Target Device(s)
No response
Visual Studio Version
No response
Build Configuration
No response
Snack, code example, screenshot, or link to a repository
See video and Gist above for a minimal-ish repro.
Metadata
Metadata
Assignees
Labels
Area: LayoutArea: TextPartner: FacebookWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.bug