Menu.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import React, { Component } from 'react';
  2. import { View, Text, TouchableOpacity } from 'react-native';
  3. import { connect } from 'react-redux';
  4. import { Actions } from 'react-native-router-flux';
  5. import { Card, CardSection } from '../components/common';
  6. class Menu extends Component {
  7. render() {
  8. return (
  9. <View style={{ flex: 1 }}>
  10. <TouchableOpacity onPress={() => Actions.ListaCursadas()}>
  11. <Card>
  12. <CardSection>
  13. <Text>Cursadas</Text>
  14. </CardSection>
  15. </Card>
  16. </TouchableOpacity>
  17. <TouchableOpacity onPress={() => Actions.Live()}>
  18. <Card>
  19. <CardSection>
  20. <Text>Curso en vivo</Text>
  21. </CardSection>
  22. </Card>
  23. </TouchableOpacity>
  24. <TouchableOpacity onPress={() => Actions.LSClases()}>
  25. <Card>
  26. <CardSection>
  27. <Text>Clases descargadas</Text>
  28. </CardSection>
  29. </Card>
  30. </TouchableOpacity>
  31. <TouchableOpacity>
  32. <Card>
  33. <CardSection>
  34. <Text>Perfil</Text>
  35. </CardSection>
  36. </Card>
  37. </TouchableOpacity>
  38. <TouchableOpacity onPress={() => Actions.About()}>
  39. <Card>
  40. <CardSection>
  41. <Text>Como llegar / acerca de / ??</Text>
  42. </CardSection>
  43. </Card>
  44. </TouchableOpacity>
  45. </View>
  46. );
  47. }
  48. }
  49. export default connect(null)(Menu);