Skip to content
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

don't take effet when set flex #67

Open
Geforceyu opened this issue Jul 14, 2017 · 2 comments
Open

don't take effet when set flex #67

Geforceyu opened this issue Jul 14, 2017 · 2 comments

Comments

@Geforceyu
Copy link

when i set the button's father view's style flexDirection:'column', aliginItems:'center'
this button not center ,is left

@TingAli
Copy link

TingAli commented Aug 5, 2017

I'm having the same issue and can't figure out how to center it. Anyone else know how to center it?

@denominatortron
Copy link

You have to set the css prop "alignSelf" of the button to "center". In the code, the default is "stretch", which starts at the left edge, and then goes as far as the allowed width.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants