你懂的

2018-11-09  本文已影响0人  糖豆萌萌哒

<View

          style={{

            flexDirection: "row",

            justifyContent: "space-around",

            backgroundColor: "#00A9FF"

          }}

        >

          <FlatList

            horizontal={true}

            showsHorizontalScrollIndicator={false}

            style={{ width: 100, height: 100 }}

            data={this.state.arr}

            renderItem={({ item }) => (

              <View

                style={{

                  alignItems: "center",

                  margin: 5,

                  marginLeft: 20,

                  marginRight: 20,

                  flexDirection: "row",

                  justifyContent: "space-around",

                  backgroundColor: "#00A9FF"

                }}

              >

                <Text>{item}</Text>

              </View>

            )}

          />

        </View>

上一篇 下一篇

猜你喜欢

热点阅读