diff --git a/App/app/Router.js b/App/app/Router.js index 511994d6..96cd8c93 100755 --- a/App/app/Router.js +++ b/App/app/Router.js @@ -180,6 +180,12 @@ const Stack = createStackNavigator({ ) } } + else if (navigation.state.routes[index].routeName == 'Eventos') { + return { + headerTitle: 'Eventos', + } + + } else { return { header: null diff --git a/App/app/assets/rallyTascas.jpg b/App/app/assets/rallyTascas.jpg new file mode 100644 index 00000000..05b309c1 Binary files /dev/null and b/App/app/assets/rallyTascas.jpg differ diff --git a/App/app/screens/Eventos.js b/App/app/screens/Eventos.js index 906206e7..cbde00a5 100644 --- a/App/app/screens/Eventos.js +++ b/App/app/screens/Eventos.js @@ -1,11 +1,13 @@ import * as React from "react"; -import {View, StyleSheet, Dimensions, Text, Button, ScrollView} from "react-native"; +import {View, StyleSheet, Dimensions, Text, Button, ScrollView, ImageBackground} from "react-native"; import {TabView, TabBar, SceneMap} from "react-native-tab-view"; +import rallyImg from '../assets/rallyTascas.jpg'; const SCREEN_HEIGHT = Dimensions.get("window").height; const SCREEN_WIDTH = Dimensions.get("window").width; + const FirstRoute = () => ( ); @@ -37,11 +39,16 @@ export default class Eventos extends React.Component { renderFebrada = () => { return ( - - - Ola - Local: 1 + @@ -71,8 +78,8 @@ export default class Eventos extends React.Component { render() { return ( - - + + {this.renderFebrada()} @@ -99,13 +106,13 @@ const styles = StyleSheet.create({ cardContainer: { flex: 1, + flexDirection: 'row', padding: 10, margin: 20, backgroundColor: '#fff', borderRadius: 5, elevation: 2, - height: SCREEN_HEIGHT * 0.6, - + height: (SCREEN_WIDTH * (1 / 2)), borderWidth: 2, color: "#000" },