// @flow import * as React from 'react'; import {Avatar, List, Text, withTheme} from 'react-native-paper'; import i18n from "i18n-js"; type Props = { onPress: Function, color: string, item: Object, height: number, } class ProximoListItem extends React.Component { colors: Object; constructor(props) { super(props); this.colors = props.theme.colors; } shouldComponentUpdate() { return false; } render() { return ( } right={() => {this.props.item.price}€ } style={{ height: this.props.height, justifyContent: 'center', }} /> ); } } export default withTheme(ProximoListItem);