-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
flexDirection: row breaks numberOfLines in nested <Text/> #4733
Comments
Hey doochik, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
+1 |
2 similar comments
+1 |
+1 |
Have any of you guys found workarounds for this? Not sure how to go about doing this... |
I had the same issue, and spent 45m+ trying to figure out why this worked: http://stackoverflow.com/questions/36284453/react-native-text-going-off-my-screen-refusing-to-wrap-what-to-do but my code did not. Looks like my top-most Component had a style containing I still believe this represents some sort of bug in React, and should remain open. (Or at least, something that needs more thorough documentation to clarify the layout model here in this action-at-a-distance of sorts), but at least I have a workaround that works for me. |
just use View wrap it, <View style={{width: screen.width}}>
<Text>Long truncated text...</Text>
</View> it work fine for me |
I have a very simple solution: This solved my problem. |
@facebook-github-bot fixed. |
|
Hi @ericnakagawa, i just do JS. |
@ericnakagawa I've tested my examples in RN 0.40. This example works as expected
|
@doochik it is working only for numberOfLines={1}. |
The actual result I want to get is
I tried some cases, but it seems that flex breaks Text@numberOfLines
Here is my result
The text was updated successfully, but these errors were encountered: