|
|
@@ -2,14 +2,20 @@ import React, { Component } from 'react';
|
|
|
import { View, Text } from 'react-native';
|
|
|
import { connect } from 'react-redux';
|
|
|
import Tabs from 'react-native-tabs';
|
|
|
+import Icon from 'react-native-vector-icons/Ionicons';
|
|
|
+import ActionButton from 'react-native-action-button';
|
|
|
+import { Actions, ActionConst } from 'react-native-router-flux';
|
|
|
+
|
|
|
|
|
|
import { claseFetch } from '../actions/';
|
|
|
import Teoria from './Clase/Teoria';
|
|
|
import Comentarios from './Clase/Comentarios';
|
|
|
import { Spinner } from '../components/common/';
|
|
|
import MyActionButton from '../components/ActionButton';
|
|
|
+import SaveClassButton from '../components/SaveClassButton';
|
|
|
import { ConnectionError } from '../components/common';
|
|
|
|
|
|
+
|
|
|
class Clase extends Component {
|
|
|
state = { page: 'Teoria' };
|
|
|
|
|
|
@@ -45,23 +51,40 @@ class Clase extends Component {
|
|
|
<View tabLabel="Videos" />
|
|
|
<Comentarios style={{flex:1}} comentarios={comentarios} respuestas={respuestas} tabLabel="Comentarios" />
|
|
|
</ScrollableTabView>
|
|
|
- <MyActionButton />
|
|
|
+ <MyActionButton onPress={() => true}>
|
|
|
+ <ActionButton.Item buttonColor='#22eeee' title="Comentario">
|
|
|
+ <Icon name="md-create" style={styles.actionButtonIcon} />
|
|
|
+ </ActionButton.Item>
|
|
|
+
|
|
|
+ <ActionButton.Item onPress={() => {} } buttonColor='#ee22ee' title="Guardar clase">
|
|
|
+ <Icon name={ false ? "ios-star" : "ios-star-outline" } style={styles.actionButtonIcon} />
|
|
|
+ </ActionButton.Item>
|
|
|
+
|
|
|
+ <ActionButton.Item onPress={() => Actions.Menu()} buttonColor='#eeee22' title="Menu">
|
|
|
+ <Icon name="md-apps" style={styles.actionButtonIcon} />
|
|
|
+ </ActionButton.Item>
|
|
|
+ </MyActionButton>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const styles = {
|
|
|
- container: {
|
|
|
- flex: 1,
|
|
|
- justifyContent: 'center',
|
|
|
- alignItems: 'center',
|
|
|
- backgroundColor: '#F5FCFF',
|
|
|
- }
|
|
|
+ actionButtonIcon: {
|
|
|
+ fontSize: 20,
|
|
|
+ height: 22,
|
|
|
+ color: 'white',
|
|
|
+ },
|
|
|
+ container: {
|
|
|
+ flex: 1,
|
|
|
+ justifyContent: 'center',
|
|
|
+ alignItems: 'center',
|
|
|
+ backgroundColor: '#F5FCFF',
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
const mapStateToProps = state => {
|
|
|
- const { curClase, loading } = state.cursadasR;
|
|
|
+ const { curClase, loading } = state.ClasesReducer;
|
|
|
return { loading, clase: curClase };
|
|
|
};
|
|
|
|