|
@@ -9,12 +9,14 @@ import utils from '../../utils/utils';
|
|
|
import Provider from '../charge/Provider';
|
|
import Provider from '../charge/Provider';
|
|
|
import ConnectType from './ConnectType';
|
|
import ConnectType from './ConnectType';
|
|
|
import app from '../../../app.json';
|
|
import app from '../../../app.json';
|
|
|
|
|
+import Button from '../../components/Button';
|
|
|
|
|
|
|
|
export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) => {
|
|
export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) => {
|
|
|
if (item.id) {
|
|
if (item.id) {
|
|
|
return (
|
|
return (
|
|
|
- <Pressable
|
|
|
|
|
|
|
+ <Button
|
|
|
style={styles.itemView}
|
|
style={styles.itemView}
|
|
|
|
|
+ viewStyle={styles.itemContent}
|
|
|
key={index}
|
|
key={index}
|
|
|
onPress={onPress}
|
|
onPress={onPress}
|
|
|
android_ripple={ripple}>
|
|
android_ripple={ripple}>
|
|
@@ -77,7 +79,7 @@ export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) =>
|
|
|
</Pressable> */}
|
|
</Pressable> */}
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
- </Pressable>
|
|
|
|
|
|
|
+ </Button>
|
|
|
);
|
|
);
|
|
|
} else {
|
|
} else {
|
|
|
return <></>;
|
|
return <></>;
|
|
@@ -86,10 +88,16 @@ export default ListViewV2 = ({item, index, separators, onPress, onFavorite}) =>
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
const styles = StyleSheet.create({
|
|
|
itemView: {
|
|
itemView: {
|
|
|
- padding: 16,
|
|
|
|
|
|
|
+ borderRadius: 0,
|
|
|
flexDirection: 'row',
|
|
flexDirection: 'row',
|
|
|
borderBottomWidth: 1,
|
|
borderBottomWidth: 1,
|
|
|
- borderBottomColor: '#eee'
|
|
|
|
|
|
|
+ borderBottomColor: '#eee',
|
|
|
|
|
+ backgroundColor: pageBackground
|
|
|
|
|
+ },
|
|
|
|
|
+ itemContent: {
|
|
|
|
|
+ flex: 1,
|
|
|
|
|
+ padding: 16,
|
|
|
|
|
+ flexDirection: 'row'
|
|
|
},
|
|
},
|
|
|
stationInfo: {
|
|
stationInfo: {
|
|
|
flex: 1,
|
|
flex: 1,
|