APSL/react-native-button

The button layout is skewed when wrap with view component

rskull opened this issue · 1 comments

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

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

rskull@b91ccb9

2016-11-16 1 27 54