/** * @param: * width: 每一个item宽度 * height: 每一个item高度 * data: 数据 Arrary */ import React, { Component } from "react"; import { StyleSheet, Text, View, } from "react-native"; import Dimensions from '../utils/dimensions' const styles = StyleSheet.create({ }) export default class ScrollRow extends Component { render() { return ( ( { alert(item.name); }} activeOpacity={1} > )} /> ) } }