import React, { Component } from 'react'
import {
StyleSheet,
View,
FlatList,
Text,
StatusBar,
TouchableOpacity,
PixelRatio,
} from 'react-native'
import { connect } from 'react-redux'
import Icon from '../../../components/Iconfont/Iconfont'
import { NavigationActions, createAction } from '../../../utils'
@connect(({ theme, mine }) => ({ ...theme, ...mine }))
class Supplier extends Component {
constructor(props) {
super(props)
this.state = {}
// console.disableYellowBox = true;
}
// 头部
header() {
return (
this.props.dispatch(NavigationActions.back())}
>
返回
供应商
)
}
SupplierList(item) {
return (
{item.saleOrganizationName || item.saleCustomerName}
{/* */}
{/* 电 话:{item.tel} */}
{/* 电 话: -
*/}
产品线:{item.productLineName}
品 牌:{item.brandName}
)
}
render() {
const { appTheme, SupplierInfo } = this.props
return (
{this.header()}
item.id + key}
data={SupplierInfo}
renderItem={({ item, key }) => this.SupplierList(item, key)}
/>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
})
export default Supplier