For some reason, setting alignItems: center
in the style on the container view causes text inside a flex row to stop wrapping, and to not respect the container view's padding
.
Working example and code here: https://rnplay.org/apps/FsDXuQ
I tried following the advice to set flexDirection to column, use flex: 1 or flexWrap but the only thing that works is removing the alignItems: center
from the container view.
I don't understand what's going on here. What if I want:
Thanks.
Use flex
property. Ex.<Text style={{ flex: 1}}>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With