Bladeren bron

add video to classes

David 9 jaren geleden
bovenliggende
commit
22b21ad053
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/scenes/Clase.js

+ 2 - 2
src/scenes/Clase.js

@@ -41,7 +41,7 @@ class Clase extends Component {
 
 		const ScrollableTabView = require('react-native-scrollable-tab-view');
 
-		const { titulo, profesor, texto, comentarios, respuestas, fecha } = this.props.clase;
+		const { titulo, profesor, texto, comentarios, respuestas, fecha, pdf } = this.props.clase;
 
 		const icon = local ? 'ios-star' : 'ios-star-outline';
 		const title = local ? 'Borrar clase' : 'Guardar clase';
@@ -53,7 +53,7 @@ class Clase extends Component {
 				<Teoria
 					titulo={titulo} profesor={profesor} fecha={fecha} texto={texto} style={{ flex: 1 }} tabLabel='Teoria'
 				/>
-				<Videos tabLabel='Videos' />
+				<Videos videos={pdf} tabLabel='Videos' />
 				<Comentarios
 					style={{ flex: 1 }} comentarios={comentarios}
 					titulo={titulo} profesor={profesor} fecha={fecha}