子视图忽略父视图填充,因此它适合全宽

时间:2018-06-18 15:25:30

标签: javascript reactjs css3 react-native flexbox

父视图:

<ScrollView style={{backgroundColor:'#460547', padding: 70}}>

子视图:

<View style={{flex: 1, flexDirection: 'row'}}>

如何让子视图忽略父视图填充,以便它适合整个宽度? enter image description here

0 个答案:

没有答案