|
@@ -7,6 +7,7 @@ import { claseFetch } from '../actions/';
|
|
|
import Teoria from './Clase/Teoria';
|
|
import Teoria from './Clase/Teoria';
|
|
|
import Comentarios from './Clase/Comentarios';
|
|
import Comentarios from './Clase/Comentarios';
|
|
|
import { Spinner } from '../components/common/';
|
|
import { Spinner } from '../components/common/';
|
|
|
|
|
+import MyActionButton from '../components/ActionButton';
|
|
|
|
|
|
|
|
class Clase extends Component {
|
|
class Clase extends Component {
|
|
|
state = { page: 'Teoria' };
|
|
state = { page: 'Teoria' };
|
|
@@ -34,11 +35,14 @@ class Clase extends Component {
|
|
|
const { titulo, profesor, texto, comentarios, respuestas } = this.props.clase;
|
|
const { titulo, profesor, texto, comentarios, respuestas } = this.props.clase;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <ScrollableTabView style={styles.container, {flex:1}}>
|
|
|
|
|
- <Teoria titulo={titulo} profesor={profesor} texto={texto} style={{flex:1}} tabLabel="Teoria" />
|
|
|
|
|
- <View tabLabel="Videos" />
|
|
|
|
|
- <Comentarios style={{flex:1}} comentarios={comentarios} respuestas={respuestas} tabLabel="Comentarios" />
|
|
|
|
|
- </ScrollableTabView>
|
|
|
|
|
|
|
+ <View style={{flex:1}}>
|
|
|
|
|
+ <ScrollableTabView style={styles.container, {flex:1}}>
|
|
|
|
|
+ <Teoria titulo={titulo} profesor={profesor} texto={texto} style={{flex:1}} tabLabel="Teoria" />
|
|
|
|
|
+ <View tabLabel="Videos" />
|
|
|
|
|
+ <Comentarios style={{flex:1}} comentarios={comentarios} respuestas={respuestas} tabLabel="Comentarios" />
|
|
|
|
|
+ </ScrollableTabView>
|
|
|
|
|
+ <MyActionButton />
|
|
|
|
|
+ </View>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|