Skip to content

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

@rskull

Description

@rskull

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions