

We won't discuss the ++code>flexBasis++/code> property in this article, as it has no impact in the problem. In the Flexbox layout, ++code>flex: 1++/code> is a shortcut for 3 style properties: 1.2 why does the solution works: FlexGrow & FlexShrink The Text is wrapping, but not enough so we can see it entirely. The row container is itself in a classic vertical ++code>View++/code>. But they are not impacting for the study: everything essential is above.īasically, what we have is a++code> Text++/code> in a row container, with an icon before. Used some extra padding, colors and radiuses. Note: You can play around with the code to obtain the screenshot, I Here is a React Native code that allows to reproduce the bug ?:

Why is the solution working? 1.1 situation Basic knowledge of React Native / Javascript - Basic knowledge of Flexbox Layoutġ. This article does not require an extended developer experience to be understood. You will need: Then, more interestingly, I explain why was the Text going off screen in the first place First why is the StackOverflow fix working 2.

And after some exploration, I happily announce you that I solved it! ? I'll explain everything in this article:ġ. You see, it made a lot of reasons to want to solve this mystery. My Brain after fixing the going-out Text without understanding what I did
