for 循环



  • var data = this.state.result;
    var list = [];
    for(var i in data){
    list.push(
    <ScrollView key={i} tabLabel={data[i].catname} style={styles.flex}>
    <Text>1111111</Text>
    </ScrollView>
    );
    }

    push出多个ScrollView ,但是这些ScrollView横向集中在屏幕的长度,怎样让他们展开?
    0_1471331357369_123.png


登录后回复