... ... @@ -30,7 +30,7 @@ export default class OrderIncome extends Component {
_renderHeader() {
return (
<View>
<View style={{backgroundColor: 'white'}}>
<View style={styles.header}>
<TouchableOpacity style={{flex: 1}} activeOpacity={1} onPress={() => {
this.updateState(1, 0);
... ... @@ -163,7 +163,7 @@ export default class OrderIncome extends Component {
enableEmptySections={true}
dataSource={this.dataSource.cloneWithRows(orderLists)}
renderRow={this._renderRow}
renderHeader={this._renderHeader}
renderSectionHeader={this._renderHeader}
onEndReached={() => {
if (orderLists.size !== 0) {
this.props.onEndReached && this.props.onEndReached();
... ... @@ -192,6 +192,7 @@ let styles = StyleSheet.create({
justifyContent: 'center',
},
header: {
backgroundColor: 'white',
width: width - 110,
height: 44,
marginLeft:55,
... ...