TouchableHighlight
的数据。正在从数组中分配数据。
class Request extends Component {
constructor(props){
super(props);
this.Clicked = this.Clicked.bind(this)
}
Clicked = () => {
//console.log(WhatIneed);
};
GetIt = () => {
return this.state.ArrData.map((MyData) => (
<View>
<TouchableHighlight WhatIneed={MyData.ArrVal} onPress={() => {
this.Clicked();
}}>
<Text>Button</Text>
</TouchableHighlight>
</View>
))
};
}