|
@@ -8,25 +8,25 @@ class Teoria extends Component {
|
|
|
//console.log("teoria", this.props);
|
|
//console.log("teoria", this.props);
|
|
|
return (
|
|
return (
|
|
|
<View style={{flex:1}}>
|
|
<View style={{flex:1}}>
|
|
|
- <CardSection>
|
|
|
|
|
- <Text>{this.props.titulo}</Text>
|
|
|
|
|
- </CardSection>
|
|
|
|
|
|
|
+ <CardSection>
|
|
|
|
|
+ <Text>{this.props.titulo}</Text>
|
|
|
|
|
+ </CardSection>
|
|
|
|
|
|
|
|
- <CardSection>
|
|
|
|
|
- <TouchableOpacity onPress={() => Actions.ViewProf({ id: this.props.profesor._id})}>
|
|
|
|
|
- <Text>Profesor: </Text>
|
|
|
|
|
- <Text style={{ color: '#007aff', fontWeight: '600'}}>
|
|
|
|
|
- {this.props.profesor.nombre} {this.props.profesor.apellido}
|
|
|
|
|
- </Text>
|
|
|
|
|
- </TouchableOpacity>
|
|
|
|
|
- </CardSection>
|
|
|
|
|
|
|
+ <CardSection>
|
|
|
|
|
+ <TouchableOpacity onPress={() => Actions.ViewProf({ id: this.props.profesor._id})}>
|
|
|
|
|
+ <Text>Profesor: </Text>
|
|
|
|
|
+ <Text style={{ color: '#007aff', fontWeight: '600'}}>
|
|
|
|
|
+ {this.props.profesor.nombre} {this.props.profesor.apellido}
|
|
|
|
|
+ </Text>
|
|
|
|
|
+ </TouchableOpacity>
|
|
|
|
|
+ </CardSection>
|
|
|
|
|
|
|
|
- <CardSection style={{flex:1, alignItems:'stretch'}}>
|
|
|
|
|
- <WebView
|
|
|
|
|
- scalesPageToFit={true}
|
|
|
|
|
- javaScriptEnabled={false}
|
|
|
|
|
- source={{html: this.props.texto}} />
|
|
|
|
|
- </CardSection>
|
|
|
|
|
|
|
+ <CardSection style={{flex:1, alignItems:'stretch'}}>
|
|
|
|
|
+ <WebView
|
|
|
|
|
+ scalesPageToFit={true}
|
|
|
|
|
+ javaScriptEnabled={false}
|
|
|
|
|
+ source={{html: this.props.texto}} />
|
|
|
|
|
+ </CardSection>
|
|
|
</View>
|
|
</View>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|