[Text] [Android] numberOfLines prop WITH textAlign style breaks onPress in Nested Text #27624
Labels
Bug
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
On Android, nested Text elements do not support
onPress
if their parent has thenumberOfLines
prop AND the textAlign style. Removing eithernumberOfLines
ortextAlign
allows for the nested Text element'sonPress
to work properly. iOS works as expected.Possibly related to #22811 (Text numberOfLines prop is not respected in Nested Text) except numberOfLines prop is operating as expected in this case.
React Native version:
originally found on
0.59.10
reproduced on Snack on
0.61.4
Steps To Reproduce
styles.paragraph
settextAlign: 'center'
Change code in the editor and watch...
, nothing happens.ow you poked my text
.Describe what you expected to happen:
When clicking on the truncated link
Change code in the editor and watch...
that is center aligned, a pop up withow you poked my text
should appear.Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/Sk8ZPAmk8
The text was updated successfully, but these errors were encountered: