-
Notifications
You must be signed in to change notification settings - Fork 169
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
Alignement support ? #33
Comments
+1 I was checking this out today as well and found a stack overflow answer about it, not sure if that's an intended way to do it or a hacky work-around, but I figured I'd share it with you. here's an example of flex-ending two rows in a column too, since that's what I was trying to figure out how to do (and would love to know if there was a good way to do it without using flex properties).
|
Yes, I think that too... Or maybe Col & Row is just used in a more "container" level, just to manage your main view component. Then, you use simple view with flex attribute for alignements... I'm a little surprised that we don't have any docs for that... I saw the demo app of react-native-elements (they had implemented their own Grid, Col, Row based on this repo) and they explicitly use flex attributes. So I think that's the good pattern |
Inside "Row" component wrap "Text" with < View style={{ flex: 1 }} >, then style < Text > with TextAlign: <Text style={{ textAlign: 'right' }}>
|
Hello, I saw in native-base docs that we can use this lib to align components :
However, I don't see anything related to alignement (like alignItems or justifyContent) to center component... Thanks for your help !
The text was updated successfully, but these errors were encountered: