Skip to content

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

Open

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

Activity

  1. rskull commented on Nov 15, 2016

    @rskull
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions