|
|
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
|
|
|
import { Text, ScrollView, View } from 'react-native';
|
|
|
import { Actions } from 'react-native-router-flux';
|
|
|
import { Button, Card, CardSection } from '../../components/common';
|
|
|
+import Icon from 'react-native-vector-icons/Ionicons';
|
|
|
|
|
|
|
|
|
class ItemCursada extends Component {
|
|
|
@@ -16,35 +17,38 @@ class ItemCursada extends Component {
|
|
|
const horaIni = moment(data.horaIni).local().format('HH:mm');
|
|
|
const horaFin = moment(data.horaFin).local().format('HH:mm');
|
|
|
return (
|
|
|
- <ScrollView>
|
|
|
- <Card>
|
|
|
- <CardSection>
|
|
|
- <Text style={styles.titleStyle}>
|
|
|
- { data.titulo}
|
|
|
- </Text>
|
|
|
- </CardSection>
|
|
|
-
|
|
|
- <CardSection style={{ flexDirection: 'column' }}>
|
|
|
- <View>
|
|
|
- <Text>{ data.descCorta}</Text>
|
|
|
- </View>
|
|
|
- <View>
|
|
|
- <Text style={{ fontWeight: '700' }}>Mas info</Text>
|
|
|
- </View>
|
|
|
- </CardSection>
|
|
|
-
|
|
|
- <CardSection>
|
|
|
- <Text style={{ flex: 1 }}>{ data.dia}</Text>
|
|
|
- <Text style={{ flex: 2 }}>{ horaIni} a { horaFin}</Text>
|
|
|
- </CardSection>
|
|
|
-
|
|
|
- <CardSection>
|
|
|
- <Button onPress={this.onRowPress.bind(this)}>
|
|
|
- Ingresar
|
|
|
- </Button>
|
|
|
- </CardSection>
|
|
|
+ <Card style={{backgroundColor:'#fff'}}>
|
|
|
+ <CardSection>
|
|
|
+ <Text style={styles.titleStyle}>{data.titulo}</Text>
|
|
|
+ </CardSection>
|
|
|
+
|
|
|
+ <CardSection style={{flexDirection: 'column' }}>
|
|
|
+ <Text style={{fontSize:14,paddingLeft:15,paddingRight:15}}>{data.descCorta}</Text>
|
|
|
+ </CardSection>
|
|
|
+
|
|
|
+ <CardSection>
|
|
|
+ <View style={styles.iconRowView}>
|
|
|
+ <Icon name='ios-calendar-outline' style={styles.icons} />
|
|
|
+ <Text style={styles.iconRowText}>{data.dia}</Text>
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <View style={styles.iconRowView}>
|
|
|
+ <Icon name='md-time' style={styles.icons} />
|
|
|
+ <Text style={styles.iconRowText}>{horaIni} a {horaFin}</Text>
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <View style={styles.iconRowView}>
|
|
|
+ <Icon name='ios-paper-outline' style={styles.icons} />
|
|
|
+ <Text style={styles.iconRowText}>Mas info</Text>
|
|
|
+ </View>
|
|
|
+ </CardSection>
|
|
|
+
|
|
|
+ <CardSection>
|
|
|
+ <Button onPress={this.onRowPress.bind(this)}>
|
|
|
+ Ingresar
|
|
|
+ </Button>
|
|
|
+ </CardSection>
|
|
|
</Card>
|
|
|
- </ScrollView>
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
@@ -53,8 +57,23 @@ const styles = {
|
|
|
titleStyle: {
|
|
|
fontSize: 18,
|
|
|
paddingLeft: 15,
|
|
|
+ paddingRight: 15,
|
|
|
textAlign: 'center',
|
|
|
flex: 1
|
|
|
+ },
|
|
|
+ icons: {
|
|
|
+ fontSize: 18,
|
|
|
+ marginRight: 10
|
|
|
+ },
|
|
|
+ iconRowText: {
|
|
|
+ fontSize: 12
|
|
|
+ },
|
|
|
+ iconRowView: {
|
|
|
+ flex: 1,
|
|
|
+ flexDirection: 'row',
|
|
|
+ alignItems: 'center',
|
|
|
+ paddingLeft: 10,
|
|
|
+ paddingRight: 10,
|
|
|
}
|
|
|
};
|
|
|
|