Fixed proximo list details

This commit is contained in:
keplyx 2020-02-25 22:06:02 +01:00
parent b40c33be5c
commit 6f005a5d7d

View file

@ -78,7 +78,6 @@ export default class ProximoListScreen extends React.Component<Props, State> {
onSelectSortModePrice: Function; onSelectSortModePrice: Function;
onSortMenuPress: Function; onSortMenuPress: Function;
renderItem: Function; renderItem: Function;
onListItemPress: Function;
constructor(props: any) { constructor(props: any) {
super(props); super(props);
@ -91,7 +90,6 @@ export default class ProximoListScreen extends React.Component<Props, State> {
this.onSelectSortModePrice = this.onSelectSortModePrice.bind(this); this.onSelectSortModePrice = this.onSelectSortModePrice.bind(this);
this.onSortMenuPress = this.onSortMenuPress.bind(this); this.onSortMenuPress = this.onSortMenuPress.bind(this);
this.renderItem = this.renderItem.bind(this); this.renderItem = this.renderItem.bind(this);
this.onListItemPress = this.onListItemPress.bind(this);
} }
/** /**
@ -318,9 +316,10 @@ export default class ProximoListScreen extends React.Component<Props, State> {
} }
renderItem({item}: Object) { renderItem({item}: Object) {
const onListItemPress = this.onListItemPress.bind(this, item);
return (<ListItem return (<ListItem
thumbnail thumbnail
onPress={this.onListItemPress} onPress={onListItemPress}
> >
<Left> <Left>
<Thumbnail square source={{uri: item.image}}/> <Thumbnail square source={{uri: item.image}}/>