The button layout is skewed when wrap with view component
rskull opened this issue · 1 comments
rskull commented
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>
NG
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF' }}>
<View>
<Button style={{ backgroundColor: 'red'}} textStyle={{fontSize: 18}}>
Hello!
</Button>
</View>
</View>
rskull commented