2017-05-05 66 views

回答

4

试试这个:

<View style={{flex: 1, flexDirection: 'row'}}> 
    <View style={{ 
     backgroundColor: 'blue', 
     flexGrow: 1, 
    }}> 
     <Text>Fluid</Text> 
    </View> 
    <View style={{ 
     backgroundColor: 'red', 
     width: 100, 
    }}> 
     <Text>Fixed</Text>   
    </View> 
    </View> 
+0

尼斯。我不知道'flexGrow'属性。泰 –

相关问题