David 9 lat temu
rodzic
commit
6c902ab20a
1 zmienionych plików z 7 dodań i 8 usunięć
  1. 7 8
      src/scenes/Clase/Teoria.js

+ 7 - 8
src/scenes/Clase/Teoria.js

@@ -13,17 +13,16 @@ class Teoria extends Component {
         </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>
+			<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>
+        <CardSection style={{flex:1, alignItems:'stretch'}}>
             <WebView
-              style={{height:400}}
               scalesPageToFit={true}
               javaScriptEnabled={false}
               source={{html: this.props.texto}} />