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

The button layout is skewed when wrap with view component #56

Open
rskull opened this issue Nov 15, 2016 · 1 comment
Open

The button layout is skewed when wrap with view component #56

rskull opened this issue Nov 15, 2016 · 1 comment

Comments

@rskull
Copy link

rskull commented Nov 15, 2016

The button layout is skewed when wrap with view component.
Is this a specification??

OK

<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF' }}>
  <Button style={{ backgroundColor: 'red'}} textStyle={{fontSize: 18}}>
    Hello!
  </Button>
</View>

2016-11-15 23 58 56

NG

<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF' }}>
  <View>
    <Button style={{ backgroundColor: 'red'}} textStyle={{fontSize: 18}}>
      Hello!
    </Button>
  </View>
</View>

2016-11-16 0 06 07

@rskull
Copy link
Author

rskull commented Nov 15, 2016

If it is a bug, may be cause is flex prop in textButton.

rskull@b91ccb9

2016-11-16 1 27 54

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

1 participant