parent
7b35f5c3ff
commit
e24d3c3391
|
@ -180,6 +180,12 @@ const Stack = createStackNavigator({
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (navigation.state.routes[index].routeName == 'Eventos') {
|
||||||
|
return {
|
||||||
|
headerTitle: 'Eventos',
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
return {
|
return {
|
||||||
header: null
|
header: null
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
|
@ -1,11 +1,13 @@
|
||||||
import * as React from "react";
|
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 {TabView, TabBar, SceneMap} from "react-native-tab-view";
|
||||||
|
|
||||||
|
import rallyImg from '../assets/rallyTascas.jpg';
|
||||||
|
|
||||||
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
||||||
const SCREEN_WIDTH = Dimensions.get("window").width;
|
const SCREEN_WIDTH = Dimensions.get("window").width;
|
||||||
|
|
||||||
|
|
||||||
const FirstRoute = () => (
|
const FirstRoute = () => (
|
||||||
<View style={[styles.scene, {backgroundColor: "#ff4081"}]}/>
|
<View style={[styles.scene, {backgroundColor: "#ff4081"}]}/>
|
||||||
);
|
);
|
||||||
|
@ -37,11 +39,16 @@ export default class Eventos extends React.Component {
|
||||||
renderFebrada = () => {
|
renderFebrada = () => {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
|
|
||||||
|
|
||||||
<View styles={styles.cardContainer}>
|
<View styles={styles.cardContainer}>
|
||||||
<Text>Ola</Text>
|
<ImageBackground
|
||||||
<Text style={{color: "black"}}>Local: 1</Text>
|
style={{
|
||||||
|
flex: 1,
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
|
||||||
|
}}
|
||||||
|
source={require('../assets/rallyTascas.jpg')}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View styles={styles.cardContainer}>
|
<View styles={styles.cardContainer}>
|
||||||
|
@ -71,8 +78,8 @@ export default class Eventos extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<ScrollView >
|
<ScrollView>
|
||||||
<View>
|
<View style={styles.cardContainer}>
|
||||||
{this.renderFebrada()}
|
{this.renderFebrada()}
|
||||||
</View>
|
</View>
|
||||||
<View styles={styles.cardContainer}>
|
<View styles={styles.cardContainer}>
|
||||||
|
@ -99,13 +106,13 @@ const styles = StyleSheet.create({
|
||||||
|
|
||||||
cardContainer: {
|
cardContainer: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
flexDirection: 'row',
|
||||||
padding: 10,
|
padding: 10,
|
||||||
margin: 20,
|
margin: 20,
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
borderRadius: 5,
|
borderRadius: 5,
|
||||||
elevation: 2,
|
elevation: 2,
|
||||||
height: SCREEN_HEIGHT * 0.6,
|
height: (SCREEN_WIDTH * (1 / 2)),
|
||||||
|
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
color: "#000"
|
color: "#000"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue